SlideShare a Scribd company logo
1 of 19
Basics and Features of Java
 Importance of Java , C++ vs. Java, Applets




                                              1
Objectives

On completion of this period, you would be able to
 know

• The basics of Java




                                                     2
Recap


• What is an Object Oriented Programming?

• What are the differences between POP & OOP?




                       9CM604.1                 3
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
It was meant to!!




Fig:1.1 A programming language for appliances!
                                            5
Discussion

• Can you list some more consumer electronic
  devices?
  – Fridges
  – Washing Machine




                                               6
“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
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
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
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
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
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
Contd..


                Define an Applet


• We can develop applets for doing everything from

  simple animated graphics to complex games




                                                        13
Summary

• Java History
• Importance of Java in Internet Programming
• Compare Java & C++
• Define An Applet




                                               14
Quiz

1.Java is a general purpose ____ Programming
    Language

a)   Object Oriented
b)   Procedural Oriented
c)   Structured
d)   None



                                               15
Quiz

2.Java was Originally called as ______

a)   Teak
b)   Oak
c)   Sun
d)   Internet




                                         16
Quiz

3.Applets are _____ Java programs for internet
   applications

a)   Medium
b)   Large
c)   Small
d)   Very Large



                                                 17
Frequently Asked Questions


• What is an applet ?

• Differentiate Java with C++

• Why Java is important to internet?




                                        18
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

More Related Content

What's hot (20)

Presentation5
Presentation5Presentation5
Presentation5
 
Core java
Core java Core java
Core java
 
History of Java 1/2
History of Java 1/2History of Java 1/2
History of Java 1/2
 
Java features
Java featuresJava features
Java features
 
The Evolution of Java
The Evolution of JavaThe Evolution of Java
The Evolution of Java
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction to Core Java Programming
Introduction to Core Java ProgrammingIntroduction to Core Java Programming
Introduction to Core Java Programming
 
Java project
Java projectJava project
Java project
 
Java
JavaJava
Java
 
Java introduction
Java introductionJava introduction
Java introduction
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
 
Java 1
Java 1Java 1
Java 1
 
Netbeans IDE & Platform
Netbeans IDE & PlatformNetbeans IDE & Platform
Netbeans IDE & Platform
 
Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".
 
Features of java 02
Features of java 02Features of java 02
Features of java 02
 
core java
core javacore java
core java
 
Java: Rumours of my demise are greatly exaggerated
Java: Rumours of my demise are greatly exaggeratedJava: Rumours of my demise are greatly exaggerated
Java: Rumours of my demise are greatly exaggerated
 
itft-Java evolution
itft-Java evolutionitft-Java evolution
itft-Java evolution
 
Introduction To NetBeans IDE
Introduction To NetBeans IDEIntroduction To NetBeans IDE
Introduction To NetBeans IDE
 

Similar to 9 cm604.1

Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptxSumanBhandari40
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingRavi Kant Sahu
 
Introduction to Java Part-2
Introduction to Java Part-2Introduction to Java Part-2
Introduction to Java Part-2RatnaJava
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java Hitesh-Java
 
Session 01 - Introduction to Java
Session 01 - Introduction to JavaSession 01 - Introduction to Java
Session 01 - Introduction to JavaPawanMM
 
01-Introduction.ppt
01-Introduction.ppt01-Introduction.ppt
01-Introduction.pptEmanAsem4
 
Introduction to java
Introduction to java Introduction to java
Introduction to java sanjay joshi
 
Lec 1-of-oop2
Lec 1-of-oop2Lec 1-of-oop2
Lec 1-of-oop2SM Rasel
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operatorkamal kotecha
 
Understand Java for Android the Hard Way
Understand Java for Android the Hard WayUnderstand Java for Android the Hard Way
Understand Java for Android the Hard WayGlobalLogic Ukraine
 
Presentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptxPresentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptxVatsalVora15
 

Similar to 9 cm604.1 (20)

Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptx
 
java Features
java Featuresjava Features
java Features
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Introduction to Java Part-2
Introduction to Java Part-2Introduction to Java Part-2
Introduction to Java Part-2
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java
 
Session 01 - Introduction to Java
Session 01 - Introduction to JavaSession 01 - Introduction to Java
Session 01 - Introduction to Java
 
01-Introduction.ppt
01-Introduction.ppt01-Introduction.ppt
01-Introduction.ppt
 
130700548484460000
130700548484460000130700548484460000
130700548484460000
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
L1 basics
L1 basicsL1 basics
L1 basics
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Lec 1-of-oop2
Lec 1-of-oop2Lec 1-of-oop2
Lec 1-of-oop2
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
 
Java Basics
Java BasicsJava Basics
Java Basics
 
java full 1.docx
java full 1.docxjava full 1.docx
java full 1.docx
 
java full.docx
java full.docxjava full.docx
java full.docx
 
Understand Java for Android the Hard Way
Understand Java for Android the Hard WayUnderstand Java for Android the Hard Way
Understand Java for Android the Hard Way
 
java completed units.docx
java completed units.docxjava completed units.docx
java completed units.docx
 
Presentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptxPresentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptx
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

9 cm604.1

  • 1. Basics and Features of Java Importance of Java , C++ vs. Java, Applets 1
  • 2. Objectives On completion of this period, you would be able to know • The basics of Java 2
  • 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
  • 16. Quiz 2.Java was Originally called as ______ a) Teak b) Oak c) Sun d) Internet 16
  • 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