Core Java: Submitted to-MR - DHARMENDRA YADAV

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

Core Java

Submitted to- MR.DHARMENDRA YADAV

Submitted by- KARTIK KUMAR BOTHRA


Content
What is Java ?
Where is Java used ?
Features of Java
Java Virtual Machine
Hello World Program
Advantage of java
Disadvantage of java
WHAT IS JAVA ?
Java is Object Oriented Programming language
as well as Plateform.
Java was developed by a team led by James Gosling
at Sun Microsystems in 1991.
Java is a first programming language which provide
the concept of writing programs that can be
executed using the web.
WHERE IS JAVA USED ?
According to the Sun , 3 billion devices run java.
There are many devices where Java is currently used.
Desktop Applications - Acrobat reader, Media player,
Antiviruses etc.
Web Applications - irctc.co.in , javatpoint.com etc.
Enterprise Application – Banking Application, Business
Applications.
Mobile Applications.
Embedded Systems.
Games.
FEATURES OF JAVA
Java is Simple.
Java is Object Oriented
Java is Distributed
Java is Robust
Java is Interpreted and Compiled
Java is Secure
Java is Portable
Java is Multi-Threaded
Java Virtual Machine
Java virtual machine is the like usual computer
which translate high level language into machine
language.
Just like that Java virtual machine also translate
bytecode into machine language.
JVM are available for many hardware and software
Plateform.
Hello World Program
// A small java program
public class HelloWorld{
public static void main(String[] args){
System.out.println(“Hello World”);
}
}
// file name must be same as class name
functions
public : It can called from anywhere
static : No object is required
void : Does not return any value
main : Name of the function
String args[] : Command Line Arguments
Data type is String Array []
Compile and Run the Program
To compile a java program:
javac HelloWorld.java

To Run a java Program :


java HelloWorld
WHAT IS OOP ?
Object-oriented programming is a method of
implementation.
A language in which everything represent in the
form of Object is called Object Oriented
Programming Language.
It not only makes the program less complex but
also makes the software reuse feasible and possible.
Java is not truly Object Oriented Programming
Language
CONCEPTS OF OOP
• Object
• Class
• Encapsulation
• Inheritance
• Polymorphism
• Abstraction
ADVANTAGES OF JAVA
Java is simple language.
Java does not support POINTERS.
Java is first language in which programs can
be executed using web.
Write Once Run Anywhere (WORA).
DISADVANTAGES OF JAVA
Slow Performance.
No support for Low level programming.
Poor features in Java.
No control over Garbage Collection.
Thank You

You might also like