Download presentation
Presentation is loading. Please wait.
Published byKelly Marylou Hubbard Modified over 9 years ago
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.