3. Recap
• What is an Object Oriented Programming?
• What are the differences between POP & OOP?
9CM604.1 3
4. Java History
• Java is a general purpose Object Oriented
Programming Language
• It was developed by “Sun Micro Systems” in 1991
• Originally called it as “Oak “ by Patrik Naughton &
James Gosling
• Java was developed to apply it on consumer electronic
devices like TVs, VCRs, Ovens etc
9CM604.1 4
5. It was meant to!!
Fig:1.1 A programming language for appliances!
5
6. Discussion
• Can you list some more consumer electronic
devices?
– Fridges
– Washing Machine
6
7. “WRITE ONCE, RUN ANYWHERE!”
Must Run on Any Architecture
Pretty portable
Program Java Java
in Java Compiler Byte code
Java Virtual Machine Java Virtual Machine
Fig:1.2 Java can be applied to consumer
electronic devices
7
8. Importance of Java in the Internet Programming
• Java is strongly associated with the internet
• The first application program written in Java was
“Hot Java”
• It is a Web Browser to run applets on internet
• Internet users can use Java to create applets and run
them locally
8
9. Contd..
Importance of Java in the Internet Programming
• Remote applet can also be downloaded
• Run it on his local computer
• Java applets have made the internet a true
extension of the storage system of the local
computer
9
10. Compare Java & C++
Sl. No Java C++
1 No header files in Java Header files are
available in C++
2 In Java destructors are In C++ destructors
replaced with finalize() are there
method
3 Java does not support C++ supports
multiple inheritance multiple inheritance
10
11. Contd..
Compare Java & C++
Sl.No Java C++
4 Java does not have C++ has pointers
pointers
5 Java does not have C++ has template
template classes classes
6 Java is a Pure Object C++ is a Partial Object
Oriented Oriented Programming
Programming Language
Language
11
12. Define an Applet
• An applet is a small Java program that can be run on
a browser like environment
• An applet located on a distant computer can be
downloaded via internet
• It is executed on a local computer in a Java
compatible browser
12
13. Contd..
Define an Applet
• We can develop applets for doing everything from
simple animated graphics to complex games
13
14. Summary
• Java History
• Importance of Java in Internet Programming
• Compare Java & C++
• Define An Applet
14
15. Quiz
1.Java is a general purpose ____ Programming
Language
a) Object Oriented
b) Procedural Oriented
c) Structured
d) None
15
17. Quiz
3.Applets are _____ Java programs for internet
applications
a) Medium
b) Large
c) Small
d) Very Large
17
18. Frequently Asked Questions
• What is an applet ?
• Differentiate Java with C++
• Why Java is important to internet?
18
19. swings
Struts
jdbc
hibernate
home
java previous question papers
OCT/NOV-2012 QUESTION PAPER
April / May 2012 c-09
October/ November-2011 c-09
April/ May 2011 c-09
April/ May 2011 c-05
19