Java
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
JVM.java files are compiled to.class files.class files contain bytecode bytecode interpreted by JVM
Tools Java Development Kit o Java Runtime Environment o Compiler o Javadocs o Integerated Development Environment (IDE) o Write code o Compile o Test o Eclipse - Source Code Control o Archives version of code o TortoiseSVN -
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); }
Inheritance Share common functions Allow class specialization
Additional Info Java Tutorials - LearningPaths.html