Basics and Features of Java




                              1
Objectives

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

•   The features of Java Applets and Applications




                                                     2
Recap

•   What is an applet?
•   Differentiate Java with C++
•   Why Java is important to internet?




                                         3
Features of Java applications

Sun Micro Systems officially describes Java
with the following features
•   Compiled and Interpreted
•   Platform Independent and Portable
•   Object Oriented
•   Robust and Secure
•   Distributed


                                              4
Contd..
    Features of Java applications

•   Simple, Small and Familiar
•   Multithreaded and Interactive
•   High Performance
•   Dynamic and Extensible




                                              5
Compiled and Interpreted

•   Usually a computer language is either compiled or
    interpreted
•   Java combines both these approaches, thus making
    Java a two stage system
•   First Java compiler translates source code into
    byte code instructions
•   Byte codes are not machine instructions

                                                    6
Contd..

           Compiled and Interpreted
•   In the second stage Java interpreter generates
    machine code

•   That can be directly executed by the machine




              Fig. 2.1 Compiled and Interpreted

                                                            7
Platform Independent and Portable
•   The most significant feature of Java   is its
    portability


•   Java programs can be easily moved from one
    computer system to another ,anywhere and at
    anytime



                                                    8
Platform Independent and Portable              Contd..


 •   Changes and upgrades in
           •   Operating systems
           •   Processors
           •   System resources

 will not force any changes in Java programs



                                                         9
Platform Independent and Portable                               Contd..




Fig. 2.2 Once compiled, Java class file can be run on any platform

                                                                          10
Object Oriented

•   Java is a true object oriented language
•   Almost everything in Java is an object
•   All programs code and data reside within objects
    and classes
•   Java comes with an extensive set of classes
    arranged in packages



                                                   11
Robust and Secure
•   Java is a robust language

•   It provides many safeguards to ensure reliable
    code

•   It has strict compile time and runtime for data
    types



                                                      12
Contd..
                Robust and Secure
•   It is designed as a garbage collected language

•   Java also provides concept of exception handling
    which identifies errors and eliminates




                                                           13
Contd..
                 Robust and Secure

•   Security becomes an important issue for a
    language that is used for programming on internet
•   Threat of viruses and abuse of resources
•   Java systems not only verify all memory access,
    but also ensure that no viruses are communicated
    with an applet


                                                          14
Contd..
                Robust and Secure


•   The absence of pointers in Java ensures that
    programs cannot gain access to memory location
    without proper initialization




                                                     15
Distributed
•   Java is designed as a distributed language for
    creating applications on networks


•   It has the ability to share both data and programs




                                                         16
Contd..
                     Distributed

•   Java applications can open and access remote

    object as easily as they can do in a local system

•   Enables multiple programmers at multiple

    locations work together on a single project



                                                            17
Simple, Small and Familiar
•   Java is small and simple language. Many features
    of C and C++ are not part of Java
       eg. : Java does not provide
                • Pointers

                • Preprocessors header file

                • goto statements

                • Operator overloading

                • Multiple inheritance




                                                   18
Contd..
     Simple, Small and Familiar

•   Familiarity is another feature of Java

•   It is modeled on C and C++ languages

•   Java is a simplified version of C++




                                                       19
Multithreaded and Interactive

•   Multithreaded means handling multiple
    tasks simultaneously
•   Java supports multithreaded programs
•   Need not wait for the application to finish
    one task before beginning another
•   Greatly    improves      the     interactive
    performance of graphical applications
                                               20
High Performance

•   Java performance is impressive for an interpreted
    language
    •   Due to the use of intermediate byte code
•   Java architecture is also designed to reduce
    overheads during runtime
•   The incorporation of multithreading enhances the
    overall execution speed of Java programs


                                                   21
Dynamic and Extensible

•   Java is a dynamic language
•   Java is capable of dynamically linking new
           •   Class libraries
           •   Methods
           •   Objects
•   Java programs supports functions written in other
    languages such as C and C++
           •   These functions are known as “native methods”



                                                               22
Contd..
          Dynamic and Extensible



•   This facility enables the programmers to use the
    efficient available in these languages


•   Native methods are dynamically linked at runtime




                                                         23
Summary

•   Features of Java Applications
•   Features of Java Applets




                                    24
Quiz

1.Usually a computer language is either ______

a)   Compiled
b)   Compiled and Interpreted
c)   Compiled or Interpreted
d)   Interpreted



                                                 25
Frequently Asked Questions

•   Explain the features of Java Applications and Java
    Applets




                                                         26
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
                          

                                27

More Related Content

PPTX
Basics of JAVA programming
PPT
Java-java virtual machine
PDF
Genesis and Overview of Java
PPTX
Java Introduction
PDF
Introduction to Java Programming Language
PPT
Java Programming for Designers
PPTX
COMPILER DESIGN OPTIONS
Basics of JAVA programming
Java-java virtual machine
Genesis and Overview of Java
Java Introduction
Introduction to Java Programming Language
Java Programming for Designers
COMPILER DESIGN OPTIONS

What's hot (20)

PPTX
Features of java
PPTX
Main method in java
PPTX
Data types in java
PPTX
Android studio ppt
ODP
Basic of Java
PPT
Java tutorial PPT
PPTX
Java web application development
PPTX
Mobile application development ppt
PPTX
Arrays in Java
PPTX
Multiple inheritance possible in Java
PPT
Introduction To C#
PPTX
core java
PDF
Java Garbage Collection - How it works
PPTX
JRE , JDK and platform independent nature of JAVA
PPTX
Introduction to java
PDF
Java notes
PPTX
PPTX
Java architecture
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
PPTX
OOPS In JAVA.pptx
Features of java
Main method in java
Data types in java
Android studio ppt
Basic of Java
Java tutorial PPT
Java web application development
Mobile application development ppt
Arrays in Java
Multiple inheritance possible in Java
Introduction To C#
core java
Java Garbage Collection - How it works
JRE , JDK and platform independent nature of JAVA
Introduction to java
Java notes
Java architecture
Introduction to Java Programming, Basic Structure, variables Data type, input...
OOPS In JAVA.pptx
Ad

Similar to Java features (20)

PPT
Computer Basics: Computer introductions for beginners
PPTX
Chapter-1 Introduction.pptx
DOCX
java full 1 (Recovered).docx
DOCX
java completed units.docx
DOCX
java full 1.docx
DOCX
java full.docx
PDF
java language features and explanation with ex
PPTX
PPTX
1 java introduction
PPTX
Introduction to JAVA
PDF
Introduction to Java Programming
PPT
Java ppt-class_Introduction_class_Objects.ppt
PPTX
JAVA INTRODUCTION - 1
PPT
Java ppt-class_basic data types methods definitions
PPT
01-Introduction.ppt
PPT
9 cm604.1
PPT
Java buzzwords
PDF
C# vs Java What are The Differences.pdf
PPT
Introduction to Core Java feature and its characteristics
PDF
Java Basics-Introduction and program control
Computer Basics: Computer introductions for beginners
Chapter-1 Introduction.pptx
java full 1 (Recovered).docx
java completed units.docx
java full 1.docx
java full.docx
java language features and explanation with ex
1 java introduction
Introduction to JAVA
Introduction to Java Programming
Java ppt-class_Introduction_class_Objects.ppt
JAVA INTRODUCTION - 1
Java ppt-class_basic data types methods definitions
01-Introduction.ppt
9 cm604.1
Java buzzwords
C# vs Java What are The Differences.pdf
Introduction to Core Java feature and its characteristics
Java Basics-Introduction and program control
Ad

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Recently uploaded (20)

PDF
NGÂN HÀNG CÂU HỎI TÁCH CHỌN LỌC THEO CHUYÊN ĐỀ TỪ ĐỀ THI THỬ TN THPT 2025 TIẾ...
PDF
Teacher's Day Quiz 2025
PDF
HSE 2022-2023.pdf الصحه والسلامه هندسه نفط
PPTX
Environmental Sciences and Sustainability Chapter 2
PDF
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
PPTX
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
PPTX
MMW-CHAPTER-1-final.pptx major Elementary Education
PPTX
MALARIA - educational ppt for students..
PDF
FAMILY PLANNING (preventative and social medicine pdf)
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
PDF
Unleashing the Potential of the Cultural and creative industries
PDF
Developing speaking skill_learning_mater.pdf
PPTX
Entrepreneurship Management and Finance - Module 1 - PPT
PDF
Jana Ojana 2025 Prelims - School Quiz by Pragya - UEMK Quiz Club
PPT
hsl powerpoint resource goyloveh feb 07.ppt
DOCX
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
PDF
HSE and their team are going through the hazards of the issues with learning ...
PDF
[Medicalstudyzone.com] 1. AIIMS NOV EMBER 2015 SOLVED PAPER.pdf
PDF
gsas-cvs-and-cover-letters jhvgfcffttfghgvhg.pdf
PDF
Jana-Ojana Finals 2025 - School Quiz by Pragya - UEMK Quiz Club
NGÂN HÀNG CÂU HỎI TÁCH CHỌN LỌC THEO CHUYÊN ĐỀ TỪ ĐỀ THI THỬ TN THPT 2025 TIẾ...
Teacher's Day Quiz 2025
HSE 2022-2023.pdf الصحه والسلامه هندسه نفط
Environmental Sciences and Sustainability Chapter 2
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
MMW-CHAPTER-1-final.pptx major Elementary Education
MALARIA - educational ppt for students..
FAMILY PLANNING (preventative and social medicine pdf)
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
Unleashing the Potential of the Cultural and creative industries
Developing speaking skill_learning_mater.pdf
Entrepreneurship Management and Finance - Module 1 - PPT
Jana Ojana 2025 Prelims - School Quiz by Pragya - UEMK Quiz Club
hsl powerpoint resource goyloveh feb 07.ppt
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
HSE and their team are going through the hazards of the issues with learning ...
[Medicalstudyzone.com] 1. AIIMS NOV EMBER 2015 SOLVED PAPER.pdf
gsas-cvs-and-cover-letters jhvgfcffttfghgvhg.pdf
Jana-Ojana Finals 2025 - School Quiz by Pragya - UEMK Quiz Club

Java features

  • 2. Objectives On completion of this period, you would be able to know • The features of Java Applets and Applications 2
  • 3. Recap • What is an applet? • Differentiate Java with C++ • Why Java is important to internet? 3
  • 4. Features of Java applications Sun Micro Systems officially describes Java with the following features • Compiled and Interpreted • Platform Independent and Portable • Object Oriented • Robust and Secure • Distributed 4
  • 5. Contd.. Features of Java applications • Simple, Small and Familiar • Multithreaded and Interactive • High Performance • Dynamic and Extensible 5
  • 6. Compiled and Interpreted • Usually a computer language is either compiled or interpreted • Java combines both these approaches, thus making Java a two stage system • First Java compiler translates source code into byte code instructions • Byte codes are not machine instructions 6
  • 7. Contd.. Compiled and Interpreted • In the second stage Java interpreter generates machine code • That can be directly executed by the machine Fig. 2.1 Compiled and Interpreted 7
  • 8. Platform Independent and Portable • The most significant feature of Java is its portability • Java programs can be easily moved from one computer system to another ,anywhere and at anytime 8
  • 9. Platform Independent and Portable Contd.. • Changes and upgrades in • Operating systems • Processors • System resources will not force any changes in Java programs 9
  • 10. Platform Independent and Portable Contd.. Fig. 2.2 Once compiled, Java class file can be run on any platform 10
  • 11. Object Oriented • Java is a true object oriented language • Almost everything in Java is an object • All programs code and data reside within objects and classes • Java comes with an extensive set of classes arranged in packages 11
  • 12. Robust and Secure • Java is a robust language • It provides many safeguards to ensure reliable code • It has strict compile time and runtime for data types 12
  • 13. Contd.. Robust and Secure • It is designed as a garbage collected language • Java also provides concept of exception handling which identifies errors and eliminates 13
  • 14. Contd.. Robust and Secure • Security becomes an important issue for a language that is used for programming on internet • Threat of viruses and abuse of resources • Java systems not only verify all memory access, but also ensure that no viruses are communicated with an applet 14
  • 15. Contd.. Robust and Secure • The absence of pointers in Java ensures that programs cannot gain access to memory location without proper initialization 15
  • 16. Distributed • Java is designed as a distributed language for creating applications on networks • It has the ability to share both data and programs 16
  • 17. Contd.. Distributed • Java applications can open and access remote object as easily as they can do in a local system • Enables multiple programmers at multiple locations work together on a single project 17
  • 18. Simple, Small and Familiar • Java is small and simple language. Many features of C and C++ are not part of Java eg. : Java does not provide • Pointers • Preprocessors header file • goto statements • Operator overloading • Multiple inheritance 18
  • 19. Contd.. Simple, Small and Familiar • Familiarity is another feature of Java • It is modeled on C and C++ languages • Java is a simplified version of C++ 19
  • 20. Multithreaded and Interactive • Multithreaded means handling multiple tasks simultaneously • Java supports multithreaded programs • Need not wait for the application to finish one task before beginning another • Greatly improves the interactive performance of graphical applications 20
  • 21. High Performance • Java performance is impressive for an interpreted language • Due to the use of intermediate byte code • Java architecture is also designed to reduce overheads during runtime • The incorporation of multithreading enhances the overall execution speed of Java programs 21
  • 22. Dynamic and Extensible • Java is a dynamic language • Java is capable of dynamically linking new • Class libraries • Methods • Objects • Java programs supports functions written in other languages such as C and C++ • These functions are known as “native methods” 22
  • 23. Contd.. Dynamic and Extensible • This facility enables the programmers to use the efficient available in these languages • Native methods are dynamically linked at runtime 23
  • 24. Summary • Features of Java Applications • Features of Java Applets 24
  • 25. Quiz 1.Usually a computer language is either ______ a) Compiled b) Compiled and Interpreted c) Compiled or Interpreted d) Interpreted 25
  • 26. Frequently Asked Questions • Explain the features of Java Applications and Java Applets 26
  • 27. 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   27