SlideShare a Scribd company logo
1 of 27
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

What's hot (20)

Java awt (abstract window toolkit)
Java awt (abstract window toolkit)Java awt (abstract window toolkit)
Java awt (abstract window toolkit)
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
java Features
java Featuresjava Features
java Features
 
JVM
JVMJVM
JVM
 
Important features of java
Important features of javaImportant features of java
Important features of java
 
Java
JavaJava
Java
 
Java constructors
Java constructorsJava constructors
Java constructors
 
Java exception handling
Java exception handlingJava exception handling
Java exception handling
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Java I/O
Java I/OJava I/O
Java I/O
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
 
Garbage collection
Garbage collectionGarbage collection
Garbage collection
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 

Similar to Java features (20)

Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptx
 
java full 1 (Recovered).docx
java full 1 (Recovered).docxjava full 1 (Recovered).docx
java full 1 (Recovered).docx
 
java completed units.docx
java completed units.docxjava completed units.docx
java completed units.docx
 
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
 
Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
 
1 java intro
1 java intro1 java intro
1 java intro
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
JAVA INTRODUCTION - 1
JAVA INTRODUCTION - 1JAVA INTRODUCTION - 1
JAVA INTRODUCTION - 1
 
01-Introduction.ppt
01-Introduction.ppt01-Introduction.ppt
01-Introduction.ppt
 
9 cm604.1
9 cm604.19 cm604.1
9 cm604.1
 
Java buzzwords
Java buzzwordsJava buzzwords
Java buzzwords
 
C# vs Java What are The Differences.pdf
C# vs Java What are The Differences.pdfC# vs Java What are The Differences.pdf
C# vs Java What are The Differences.pdf
 
Java Ch 1.pptx
Java Ch 1.pptxJava Ch 1.pptx
Java Ch 1.pptx
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java (1)
Java (1)Java (1)
Java (1)
 
Java.pptx
Java.pptxJava.pptx
Java.pptx
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Java chapter 1 basic introduction Unit-1.pptx
Java chapter  1 basic introduction Unit-1.pptxJava chapter  1 basic introduction Unit-1.pptx
Java chapter 1 basic introduction Unit-1.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
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

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