In this session you will learn:
Java History
Features of Java
Java Versions
Application Area
For more information, visit this link: https://www.mindsmapped.com/courses/software-development/online-java-training-for-beginners/
4. Page 4Classification: Restricted
History of Java
• James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java
language project in June 1991. The small team of sun engineers
called Green Team.
• Originally designed for small, embedded systems in electronic appliances
like set-top boxes.
• Firstly, it was called "Greentalk" by James Gosling and file extension was
.gt.
• After that, it was called Oak and was developed as a part of the Green
project.
• Originally developed by James Gosling at Sun Microsystems (which is now a
subsidiary of Oracle Corporation)
6. Page 6Classification: Restricted
Features Of Java
• Simple
• Similar to C and C++
• Omits operator overloading, multiple inheritance
• Goto statement is eliminated
• Header files are eliminated
• Explicit use of pointers
• Garbage collection
• A rich set of predefined classes
7. Page 7Classification: Restricted
Features Of Java
• Object-Oriented
• Forces the programmer to use the classes and object
• Class
• Member variables( data ) and member functions ( methods )
8. Page 8Classification: Restricted
Features Of Java
• Robust
• designed for writing highly reliable or robust software:
• automatic garbage collection, which prevents memory leaks
• Type safety of data
• Extensive compile tome and runtime checking
• Object Oriented Exception Handling of run time errors
• Divide by zero exception.
9. Page 9Classification: Restricted
Features Of Java
• Architectural Neutral and Interpreted
• compiler generates bytecodes
• Easy to interpret on any machine
• “Write once and run anywhere WORA”
10. Page 10Classification: Restricted
Features Of Java
• Powerful
• Networking
• Threads
• Distributed Objects
• Database Access
• Graphics
• Data structure library
• Serialization
• Digital Signatures
22. Page 23Classification: Restricted
JRE
• The JRE is the software environment in which programs compiled for a
typical JVM implementation can execute
• Implementation of the JVM
• Code necessary to run Java programs
• dynamically link native methods
• manage memory
• handle exceptions
25. Page 26Classification: Restricted
Object Oriented Programing
• Object Oriented methodology
• Advantages of object oriented approach
• Features of Object Oriented approach
26. Page 27Classification: Restricted
Object Oriented Programing
• Software development methodology
• Maps to real world objects
• Graphics Car Real Cal
• Revolves around objects and classes
• Object can communicate with each other
• Software is divided into modules
• Arranges the object in hierarchy.
27. Page 28Classification: Restricted
Object Oriented Programing
• Consists of classes and object.
• Object communicates with each other by passing messages
What is an
object????
28. Page 29Classification: Restricted
Object Oriented Programing
• Object is an instance of class
• Object is an real time entity
• State
• Behavior
• Identity NotePad Code{
filename
Text:
readOnly
Open()
Close()
Minimize()
Maxmize
Save()
}
Object = Instance Of Notepad
30. Page 31Classification: Restricted
Objects
• Objects have state and behavior
• State: What an object knows about itself
• Behavior :What an object can do.
Object Name
State = charecterstics
Behaviour:
Dog
State:
Name
Breed
Height
Weight
Behaviour:
eat()
run()
walk()
32. Page 33Classification: Restricted
Class
• Class consists of
• Member variables and member methods.
• State/ characteristics is represented via member variables
• Member methods defines the responsibility of the class
• Data within object represents its state.
• Messaging Application
• State-> Member Variables
• To:
• Text:
• Behaviour – Member functions
• sendSms
• Forward
• delete
36. Page 37Classification: Restricted
Quiz
• John is designing a contact management system . Application should store
the details of a person such as ( name, number, email ) . User should be
able to add a contact ,update a contact and delete a contact.
Name of the class:
Data to be recored.
Functionality of contact management system.
39. Page 40Classification: Restricted
Question
John, is developing a Calculator application. The application should accept
two numbers from the user and perform addition, subtraction, multiplication
and division on the numbers entered by the user. Help John to design the
problem.
45. Page 46Classification: Restricted
Features
• Information Hiding
• The basic idea is that if code chunk A doesn't really need to know
something about how code chunk B (which it calls) does its job, don't
make it know it. Then, when that part of B changes, you don't have to
go back and change A