PPT_OOP
PPT_OOP
Introduction to Java
Based on Appendix A of text
(Anita P.Jaware)
Topics of the Review
• Essentials of object-oriented programming, in
Java
• Java primitive data types, control structures, and
arrays
• Using some predefined classes:
• Math
• JOptionPane, I/O streams
• String, StringBuffer, StringBuilder
• StringTokenizer
• Writing and documenting your own Java classes
Developed By Prof.A.P.Jaware (C.O.E.T.Akola)
Some Salient
• Characteristics
Java is platform oftheJava
independent: same program
can run on any correctly implemented Java system
• Java is object-oriented:
• Structured in terms of classes, which group data with
operations on that data
• Can construct new classes by extending existing ones
• Java designed as
• A core language plus
• A rich collection of commonly available packages
• Java can be embedded in Web pages
Developed By Prof.A.P.Jaware (C.O.E.T.Akola)
Java Processing and
• Begin with Java Execution
source code in text files:
Model.java
• A Java source code compiler produces Java byte
code
• Outputs one file per class: Model.class
• May be standalone or part of an IDE
• A Java Virtual Machine loads and executes class
files
• May compile them to native code (e.g., x86) internally
// same Person?
public boolean equals (Person per) {
return (per == null) ? false :
this.IDNumber.equals(per.IDNumber);
}