Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java. Features of Java Architecture Neutral and Portable o Write once, run anywhere o Java Virtual Machine (JVM) Object Oriented o Classes encapsulate.

Similar presentations


Presentation on theme: "Java. Features of Java Architecture Neutral and Portable o Write once, run anywhere o Java Virtual Machine (JVM) Object Oriented o Classes encapsulate."— Presentation transcript:

1 Java

2 Features of Java Architecture Neutral and Portable o Write once, run anywhere o Java Virtual Machine (JVM) Object Oriented o Classes encapsulate data and algorithms Multithreaded o Processes can be made up of more than one thread of execution

3 JVM.java files are compiled to.class files.class files contain bytecode bytecode interpreted by JVM

4 Tools Java Development Kit o Java Runtime Environment o Compiler o Javadocs o http://www.oracle.com/technetwork/java/javase/overview/index.html Integerated Development Environment (IDE) o Write code o Compile o Test o Eclipse - http://www.eclipse.org/http://www.eclipse.org/ Source Code Control o Archives version of code o TortoiseSVN - http://tortoisesvn.net/

5 Classes Data members Methods class Bicycle { int speed = 0; int gear = 1; void changeGear(int newValue) { gear = newValue; } void speedUp(int increment) { speed = speed + increment; } void applyBrakes(int decrement) { speed = speed - decrement; } void printStates() { System.out.println(" speed:"+speed+" gear:"+gear); }

6 Inheritance Share common functions Allow class specialization

7 Additional Info Java Tutorials - http://download.oracle.com/javase/tutorial/tutorial LearningPaths.html


Download ppt "Java. Features of Java Architecture Neutral and Portable o Write once, run anywhere o Java Virtual Machine (JVM) Object Oriented o Classes encapsulate."

Similar presentations


Ads by Google