Introduction to the Java Programming Language
[Pages:106]Software Design
Introduction to the Java Programming Language
Material drawn from [JDK99,Sun96,Mitchell99,Mancoridis00]
Software Design (Java Tutorial)
? SERG
Java Features
? "Write Once, Run Anywhere." ? Portability is possible because of Java
virtual machine technology:
? Interpreted ? JIT Compilers
? Similar to C++, but "cleaner":
? No pointers, typedef, preprocessor, structs, unions, multiple inheritance, goto, operator overloading, automatic coercions, free.
Software Design (Java Tutorial)
? SERG
Java Subset for this Course
? We will focus on a subset of the language that will allow us to develop a distributed application using CORBA.
? Input and output will be character (terminal) based.
? For detailed treatment of Java visit:
?
Software Design (Java Tutorial)
? SERG
Java Virtual Machine
? Java programs run on a Java Virtual Machine.
? Features:
? Security ? Portability ? Superior dynamic resource management ? Resource location transparency ? Automatic garbage collection
Software Design (Java Tutorial)
? SERG
The Java Environment
Java Source File (*.java) Java Compiler (javac)
Java Bytecode File (*.class) Java Virtual Machine (java)
Software Design (Java Tutorial)
? SERG
Program Organization
Source Files (.java)
Running Application
Running Applet
JAVA BYTECODE COMPILER
Class Files (.class)
JAVA VIRTUAL MACHINE
WEB BROWSER
Software Design (Java Tutorial)
? SERG
Program Organization Standards
? Each class is implemented in its own source file. ? Include one class per file:
? Name of the Java file is the same as the class name.
? Java applications must include a class with a main method. E.g.,
? public static void main(String args[])
Software Design (Java Tutorial)
? SERG
Structure of a simple Java Program
class HelloWorld {
public static void main(String [] args) {
System.out.println("Hello World!"); } }
? Everything must be in a class.
? Java applications (not Applets) must have a main() routine in one of the classes with the signature:
? public static void main(String [] args)
Software Design (Java Tutorial)
? SERG
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- chapter14 graphical user interfaces building java
- about the tutorial
- web dynpro tutorial hello world archive
- section b the wacky word game computer
- lab manual of java programming mait
- tutorial programming in java for android development
- introduction to the java programming language
- introduction to programming in java
- java basics university of san francisco
- learning computer programming using java with 101
Related searches
- java programming language book pdf
- the java programming language pdf
- java programming language tutorial pdf
- introduction to java programming pdf
- java programming language pdf download
- java programming language for beginners
- introduction to java programming and data structures
- introduction to java programming 10th
- introduction to java programming liang
- introduction to java programming ppt
- introduction to java programming liang pdf
- the c programming language brian kernighan