Your SlideShare is downloading. ×
0
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Why Java
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Why Java

775

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
775
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
57
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Why Java Mrs. Yoast
  • 2. Why Java <ul><li>Java is simple </li></ul><ul><li>No pointers </li></ul><ul><li>Automatic memory management </li></ul><ul><li>Simpler object-oriented techiques </li></ul><ul><li>Streamlined syntax </li></ul>Mrs. Yoast
  • 3. Java Is Object-oriented <ul><li>Data can be modeled virtually as it exists physically </li></ul><ul><li>Objects can be assigned properties (or data) </li></ul><ul><li>Objects can be assigned behaviors (or methods) </li></ul><ul><li>Java uses inheritance </li></ul><ul><li>Java uses polymorphism </li></ul><ul><li>Java uses interfaces </li></ul>Mrs. Yoast
  • 4. Java is Distributed <ul><li>An application can be broken up into multiple programs </li></ul><ul><li>Each program can run on a different computer than the other pieces </li></ul><ul><li>Each piece can talk to the others – making a single “distributed” application </li></ul>Mrs. Yoast
  • 5. Distributed Programs <ul><li>Sample </li></ul>Mrs. Yoast Computer 1 Program 1 Web Server Computer 2 Program 2 IBM PC Computer 3 Program 3 Database Server
  • 6. Java Is Interpreted <ul><li>C++ Program </li></ul>Mrs. Yoast Source Code (prog.cpp) Executable Program (prog.exe) Executable Program IBM PC Text File Machine Language Compiles On PC
  • 7. Why Won’t This Work? Mrs. Yoast Executable Program UNIX Server X
  • 8. Java Is Interpreted Mrs. Yoast Source Code (prog.cpp) Executable Program (prog.exe) Executable Program IBM PC Text File Compiles On PC Bytecode Java Virtual Machine (Java to IBM PC)
  • 9. So It Can Be Used on Another Platform Mrs. Yoast Executable Program IBM PC Java Virtual Machine (Java to IBM PC) This WILL Work
  • 10. Java is Robust <ul><li>Java checks for errors early </li></ul><ul><li>Java can’t write over memory locations </li></ul><ul><li>Java can catch runtime errors and handle them </li></ul>Mrs. Yoast
  • 11. Java IS Secure <ul><li>Java is designed for networks </li></ul><ul><li>Java is secure by design </li></ul><ul><li>Java is Platform-independent </li></ul><ul><li>Java programs run on any platform that has a JVM </li></ul><ul><li>Java applets run on most web browsers. </li></ul>Mrs. Yoast
  • 12. Java is Multithreaded <ul><li>Multithreaded applications allow several processes to execute simultaneously </li></ul><ul><li>Several clients can be handled simultaneously </li></ul>Mrs. Yoast
  • 13. Java is Dynamic <ul><li>If one client is running part of a Java class, and that class is changed, the client will continue to run the original version </li></ul><ul><li>Subsequent clients will begin running the new version while the original client continues to run the original class </li></ul>Mrs. Yoast
  • 14. Sample – Hello World <ul><li>//Title: Hello World </li></ul><ul><li>//Version: 1.0 </li></ul><ul><li>//Date: Aug. 15 th , 2009 </li></ul><ul><li>//Author: Mrs. Yoast </li></ul><ul><li>//Description: Hello World Program </li></ul><ul><li>public class HelloWorld </li></ul><ul><li>{ </li></ul><ul><li>public static void main (String args[]) </li></ul><ul><li>{ </li></ul><ul><li>System.out.println(“Hello World.”); </li></ul><ul><li>}//ends main </li></ul><ul><li>}//ends HelloWorld </li></ul>Mrs. Yoast

×