SlideShare a Scribd company logo
1 of 4
INTRODUCTION OF JAVA
Java is an object oriented programming language. Originally called Oak, Java was designed
for the development of software for consumer electronic devices like TVs, VCRs, toaster etc.
Although Java was modeled after C and C++ languages, it differs form C and C++ in many
ways.
The Four Types of Java Applications
The following are the four types of applications you can build in Java:
 Applets (mini applications)
 GUI applications
 Command line applications
 Packages (libraries)
Java is a general purpose; object oriented programming language developed by Sun
Microsystems of USA in 1991.
JAVA FEATURES
The inventers of Java wanted to design a language which could offer solutions to some of the
problems encountered in modern programming. Sun Micro-systems officially describe Java
with the following attributes:
 Simple & Familiar
 Secure
 Compiled & Interpreted
 Platform-independent & Portable
 Object-oriented
 Robust
 Distributed
 Multithreaded
 High performance
 Dynamic & Extensible
SIMPLE AND FAMILIAR
 Java was designed to be easy for professional programmer to learn and use
effectively.
 Java inherits the C/C++ syntax and many of the OOPs features of C++. In Java, there are
a small number of clearly defined ways to accomplish a given task.
SECURE.
 Java systems not only verify all memory access but also ensure that no viruses are
communicated with an applet.
 The absence of pointers in Java ensures that programs can not gain access to memory
without proper authorization.
COMPILED AND INTERPRETED
Usually a computer language is either compiled or interpreted. Java combines both compiled
& interpreted, these approaches thus making Java a two stage system.
1. COMPILATION
 Java compiler translates source code into bytecode instructions.
 Bytecode- Bytecode is a highly optimized set of instructions designed to be executed by
the Java run time system, which is called the Java virtual machine (JVM).
2. INTERPRETATION
 JVM is an interpreter for bytecode. Java program is executed by the JVM. It generates
machine code that can be directly executed by the machine.
PLATFORM INDEPENDENT & PORTABLE
 Java programs can be easily moved from one computer system to another, anywhere and
anytime.
 Changes and upgrades in operating system processor and system resources will not force
any changes in java programs.
 This is the reason by Java has become a popular language on internet. We can download a
Java Applet from a remote computer onto our local system via Internet & execute it
locally.
 Java compiler generates bytecode instructions that can be implemented on any machine.
JAVA IS OBJECT-ORIENTED
 Java is a true object-oriented language. Almost everything in java is an object.All
program code and data reside within object and classes. Therefore, it's part of a family of
languages that focuses on defining data as objects and the methods that may be applied to
those objects.
 Many OOP languages support multiple inheritance, which can sometimes lead to
confusion or unnecessary complications. Java doesn't. Java supports only single
inheritance. Java allows you to create totally abstract classes known as interfaces.
 Polymorphism.
 Abstraction.
 Encapsulation.
ROBUST
 Java is a robust language.
 It provides many safeguards to ensure reliable code.
 Java also incorporates the concept of exception handling which captures series errors &
eliminates any risk of crashing the system.
DISTRIBUTED
 Java is designed as a distributed language for creating application on network .
 It has the ability to share both data and programs.
 Java has revived interfaces in a package called Remote Method Invocation (RMI). This
feature brings an unparalleled level of abstraction to client/server programing.
MULTITHREADED & INTERRACTIVE
 Multithreaded means handling multiple tasks simultaneously .
 Java supports multithreaded programming We need not wait for the application to finish
one task before beginning another.
 Java runtime comes with tools that support multiproccess synchronization & construct
smoothly running interactive systems.
DYNAMIC & EXTENSIBLE
 Java is a dynamic language.
 Java is capable of dynamically linking in new class libraries, methods and objects.
 Java can also determine the type of class through a query, making it possible to either
dynamically link or abort depending on the response.
HIGH PERFORMANCE
 Java performance is impressive for an interpreted language, mainly due to the use of
intermediate bytecode.
 The Java bytecode was carefully designed so that it would be easy to translate directly
into native machine code for very high performance by using a just-in-time compiler.
HOW JAVA DIFFER FROM C AND C++
Java is a true object oriented language while c++ is basically C with object oriented
extension.
 Java does not support operator overloading.
 Java adds new operators such as instanceof and >>>
 Java adds labbelled break and continue statements.
 Java does not contain the data types stuct, union and enum.
 Java does not have any preprocessor like #define , #include.
 Java does not have template classes as in C++.
 Java does not support multiple inheritances of classes. This is accomplished using a
new feature called “interface”.
 Java does not support global variables. Every method and variable is declared within a
class.
 Java does not use pointers.
 Java has replaced the destructor function with a finalize () function.
 There are no header files in Java.
Steps to set path
1. Open command prompt
2. Copy the path of jdk: c:>program filesjavajdk1.8.0_181bin
3. Enter into your folder where your file is stored by using CD
command.
4. path= paste copied path like c:>program
filesjavajdk1.8.0_181bin
HelloWorld! simple Java Programs
public class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World!!");
}
}
How to start working with Java
1. Create the File
The first step to create the HelloWorld application is to copy the text into a file called
HelloWorld.java using your favorite text editor like notepad.
2. Compile the Code
To compile the program, you need to first install the JDK. Then, use the program javac
included with the JDK to convert the text. To run javac, on a Macintosh drag the source file
over the javac icon at a command prompt. The javac program creates a file called
HelloWorld.class from the HelloWorld.java file. Inside this file (HelloWorld.class) is text
known as bytecodes which can be run by the Java interpreter.
javac HelloWorld.java
3. Run the Programa
Now that you have compiled the program, you can run it by typing at the command prompt:
java HelloWorld
After you do this, the computer should print to the screen
Hello World!!

More Related Content

Similar to java introduction.docx

Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1Qualys
 
Java Evolution-2.pdf
Java Evolution-2.pdfJava Evolution-2.pdf
Java Evolution-2.pdfkumari36
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technologysshhzap
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to JavaDevaKumari Vijay
 
Java Tutorial to Learn Java Programming
Java Tutorial to Learn Java ProgrammingJava Tutorial to Learn Java Programming
Java Tutorial to Learn Java Programmingbusiness Corporate
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdfAdiseshaK
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxSuganthiDPSGRKCW
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1RubaNagarajan
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unitgowher172236
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core javaWE-IT TUTORIALS
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01Jay Palit
 
Presentación rs232 java
Presentación rs232 javaPresentación rs232 java
Presentación rs232 javaJohn Rojas
 

Similar to java introduction.docx (20)

Java Lecture 1
Java Lecture 1Java Lecture 1
Java Lecture 1
 
Java Evolution-2.pdf
Java Evolution-2.pdfJava Evolution-2.pdf
Java Evolution-2.pdf
 
Chapter 1 introduction to java technology
Chapter 1 introduction to java technologyChapter 1 introduction to java technology
Chapter 1 introduction to java technology
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
 
Java part1
Java part1Java part1
Java part1
 
Java Tutorial to Learn Java Programming
Java Tutorial to Learn Java ProgrammingJava Tutorial to Learn Java Programming
Java Tutorial to Learn Java Programming
 
Java features
Java  features Java  features
Java features
 
Java Intro
Java IntroJava Intro
Java Intro
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
 
JAVA FEATURES
JAVA FEATURESJAVA FEATURES
JAVA FEATURES
 
Features of java unit 1
Features of java unit 1Features of java unit 1
Features of java unit 1
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unit
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
130700548484460000
130700548484460000130700548484460000
130700548484460000
 
Java Programming Basics
Java Programming BasicsJava Programming Basics
Java Programming Basics
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
Presentación rs232 java
Presentación rs232 javaPresentación rs232 java
Presentación rs232 java
 

Recently uploaded

dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 

Recently uploaded (20)

dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 

java introduction.docx

  • 1. INTRODUCTION OF JAVA Java is an object oriented programming language. Originally called Oak, Java was designed for the development of software for consumer electronic devices like TVs, VCRs, toaster etc. Although Java was modeled after C and C++ languages, it differs form C and C++ in many ways. The Four Types of Java Applications The following are the four types of applications you can build in Java:  Applets (mini applications)  GUI applications  Command line applications  Packages (libraries) Java is a general purpose; object oriented programming language developed by Sun Microsystems of USA in 1991. JAVA FEATURES The inventers of Java wanted to design a language which could offer solutions to some of the problems encountered in modern programming. Sun Micro-systems officially describe Java with the following attributes:  Simple & Familiar  Secure  Compiled & Interpreted  Platform-independent & Portable  Object-oriented  Robust  Distributed  Multithreaded  High performance  Dynamic & Extensible SIMPLE AND FAMILIAR  Java was designed to be easy for professional programmer to learn and use effectively.  Java inherits the C/C++ syntax and many of the OOPs features of C++. In Java, there are a small number of clearly defined ways to accomplish a given task. SECURE.  Java systems not only verify all memory access but also ensure that no viruses are communicated with an applet.  The absence of pointers in Java ensures that programs can not gain access to memory without proper authorization. COMPILED AND INTERPRETED
  • 2. Usually a computer language is either compiled or interpreted. Java combines both compiled & interpreted, these approaches thus making Java a two stage system. 1. COMPILATION  Java compiler translates source code into bytecode instructions.  Bytecode- Bytecode is a highly optimized set of instructions designed to be executed by the Java run time system, which is called the Java virtual machine (JVM). 2. INTERPRETATION  JVM is an interpreter for bytecode. Java program is executed by the JVM. It generates machine code that can be directly executed by the machine. PLATFORM INDEPENDENT & PORTABLE  Java programs can be easily moved from one computer system to another, anywhere and anytime.  Changes and upgrades in operating system processor and system resources will not force any changes in java programs.  This is the reason by Java has become a popular language on internet. We can download a Java Applet from a remote computer onto our local system via Internet & execute it locally.  Java compiler generates bytecode instructions that can be implemented on any machine. JAVA IS OBJECT-ORIENTED  Java is a true object-oriented language. Almost everything in java is an object.All program code and data reside within object and classes. Therefore, it's part of a family of languages that focuses on defining data as objects and the methods that may be applied to those objects.  Many OOP languages support multiple inheritance, which can sometimes lead to confusion or unnecessary complications. Java doesn't. Java supports only single inheritance. Java allows you to create totally abstract classes known as interfaces.  Polymorphism.  Abstraction.  Encapsulation. ROBUST  Java is a robust language.  It provides many safeguards to ensure reliable code.  Java also incorporates the concept of exception handling which captures series errors & eliminates any risk of crashing the system. DISTRIBUTED  Java is designed as a distributed language for creating application on network .  It has the ability to share both data and programs.  Java has revived interfaces in a package called Remote Method Invocation (RMI). This feature brings an unparalleled level of abstraction to client/server programing.
  • 3. MULTITHREADED & INTERRACTIVE  Multithreaded means handling multiple tasks simultaneously .  Java supports multithreaded programming We need not wait for the application to finish one task before beginning another.  Java runtime comes with tools that support multiproccess synchronization & construct smoothly running interactive systems. DYNAMIC & EXTENSIBLE  Java is a dynamic language.  Java is capable of dynamically linking in new class libraries, methods and objects.  Java can also determine the type of class through a query, making it possible to either dynamically link or abort depending on the response. HIGH PERFORMANCE  Java performance is impressive for an interpreted language, mainly due to the use of intermediate bytecode.  The Java bytecode was carefully designed so that it would be easy to translate directly into native machine code for very high performance by using a just-in-time compiler. HOW JAVA DIFFER FROM C AND C++ Java is a true object oriented language while c++ is basically C with object oriented extension.  Java does not support operator overloading.  Java adds new operators such as instanceof and >>>  Java adds labbelled break and continue statements.  Java does not contain the data types stuct, union and enum.  Java does not have any preprocessor like #define , #include.  Java does not have template classes as in C++.  Java does not support multiple inheritances of classes. This is accomplished using a new feature called “interface”.  Java does not support global variables. Every method and variable is declared within a class.  Java does not use pointers.  Java has replaced the destructor function with a finalize () function.  There are no header files in Java. Steps to set path 1. Open command prompt 2. Copy the path of jdk: c:>program filesjavajdk1.8.0_181bin
  • 4. 3. Enter into your folder where your file is stored by using CD command. 4. path= paste copied path like c:>program filesjavajdk1.8.0_181bin HelloWorld! simple Java Programs public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World!!"); } } How to start working with Java 1. Create the File The first step to create the HelloWorld application is to copy the text into a file called HelloWorld.java using your favorite text editor like notepad. 2. Compile the Code To compile the program, you need to first install the JDK. Then, use the program javac included with the JDK to convert the text. To run javac, on a Macintosh drag the source file over the javac icon at a command prompt. The javac program creates a file called HelloWorld.class from the HelloWorld.java file. Inside this file (HelloWorld.class) is text known as bytecodes which can be run by the Java interpreter. javac HelloWorld.java 3. Run the Programa Now that you have compiled the program, you can run it by typing at the command prompt: java HelloWorld After you do this, the computer should print to the screen Hello World!!