KEMBAR78
Corejava | PPTX
CORE JAVA
NAVODIT SINGHAL
CSE(3RD YEAR)
10315210101
HARSHIT SACHDEVA
CSE(3RD YEAR)
10315210057
PREPARED
BY-
CONTENTS
 INTRODUCTION
 HISTORY OF JAVA
 FEATURES OF JAVA
 WHERE IS IT USED?
 JAVA PLATFORMS/EDITIONS
 SIMPLE PROGRAM
 EXPLAINATION OF THE PROGRAM
 RUNNING THE PROGRAM
 VERSIONS OF JAVA
INTRODUCTION
 Java is a general-purpose object-oriented programming language.
 It is intended to let application developers "write once, run anywhere"
(WORA), meaning that compiled Java code can run on all platforms that support
Java without the need for recompilation.
 Java applications are typically compiled to byte code that can run on any Java
virtual machine (JVM) regardless of computer architecture.
 As of 2017, Java is one of the most popular programming languages in
use, particularly for client-server web applications, with a reported 9 million
developers.
HISTORY OF JAVA
 James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java
language project in June 1991.
 The language was initially called Oak after an oak tree that stood outside
Gosling's office. Later the project went by the name Green and was finally
renamed Java, from Java coffee. Gosling designed Java with a C/C++-style
syntax that system and application programmers would find familiar.
 Sun Microsystems released the first public implementation as Java 1.0 in 1995
(which has since been acquired by Oracle Corporation). The latest version
is Java 9, released on September 21, 2017.
FEATURES OF JAVA
Some of the features of java are:
 SIMPLE
Its syntax is based on C++ (so easier for programmers to learn it after C++).
 PLATFORM INDEPENDENT
Java code can be run on multiple platforms e.g. Windows, Linux, Sun Solaris, Mac/OS
etc. Java code is compiled by the compiler and converted into bytecode. This bytecode
is a platform-independent code because it can be run on multiple platforms i.e. Write
Once and Run Anywhere(WORA).
 OBJECT ORIENTED
It means we organize our software as a combination of different types of
objects that incorporates both data and behavior.
Basic concepts of OOPs are:
 Object
 Class
 Inheritance
 Polymorphism
 Abstraction
 Encapsulation
 SECURED
No explicit pointer used.
 ROBUST
Robust means strong. Java provide many features like automatic garbage collection,
exception handling etc. which makes it a robust language.
 PORTABLE
We can carry the java bytecode to any platform.
WHERE IS IT USED ?
According to Sun Microsystem, 3 billion devices run Java. There are many devices
where Java is currently used. Some of them are as follows:
 Desktop Applications such as media player, antivirus etc.
 Web Applications
 Enterprise Applications such as banking applications.
 Mobile(Android Applications)
JAVA PLATFORMS/ EDITIONS
There are 3 platforms or editions of Java:
 Java SE (Java Standard Edition)
It is commonly used to develop standalone applications like calculator.
 Java EE (Java Enterprise Edition)
It is a platform which is mainly used to develop web applications.
 Java ME (Java Micro Edition)
It is a micro platform which is mainly used to develop mobile applications.
SIMPLE PROGRAM
class Simple {
public static void main(String args[]) {
System.out.println("Hello Java");
}
}
 class is a keyword which is used to declare a class in java.
 public is an access modifier which represents visibility, it means it is visible to all.
 static is a keyword. If we declare any method as static, it is known as static method. The
core advantage of static method is that there is no need to create object to invoke the
static method. The main method is executed by the JVM.
 void is the return type. It means it doesn't return any value.
 main represents start of the program.
 String[] args is used for command line argument.
 System.out.println() is used as a print statement.
EXPLAINATION
 TO COMPILE - javac Simple.java
 TO EXECUTE - java Simple
 OUTPUT
Hello Java
RUNNING YOUR PROGRAM
VERSIONS OF JAVA
As of 2015, only Java 8 is officially supported. Major release versions of Java,
along with their release dates:
 JDK 1.0 (January 23, 1996)
 JDK 1.1 (February 19, 1997)
 J2SE 1.2 (December 8, 1998)
 J2SE 1.3 (May 8, 2000)
 J2SE 1.4 (February 6, 2002)
 J2SE 5.0 (September 30, 2004)
 Java SE 6 (December 11, 2006)
 Java SE 7 (July 28, 2011)
 Java SE 8 (March 18, 2014)
 Java SE 9 (September 21,2017)
THANK YOU

Corejava

  • 1.
    CORE JAVA NAVODIT SINGHAL CSE(3RDYEAR) 10315210101 HARSHIT SACHDEVA CSE(3RD YEAR) 10315210057 PREPARED BY-
  • 2.
    CONTENTS  INTRODUCTION  HISTORYOF JAVA  FEATURES OF JAVA  WHERE IS IT USED?  JAVA PLATFORMS/EDITIONS  SIMPLE PROGRAM  EXPLAINATION OF THE PROGRAM  RUNNING THE PROGRAM  VERSIONS OF JAVA
  • 3.
    INTRODUCTION  Java isa general-purpose object-oriented programming language.  It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.  Java applications are typically compiled to byte code that can run on any Java virtual machine (JVM) regardless of computer architecture.  As of 2017, Java is one of the most popular programming languages in use, particularly for client-server web applications, with a reported 9 million developers.
  • 4.
    HISTORY OF JAVA James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.  The language was initially called Oak after an oak tree that stood outside Gosling's office. Later the project went by the name Green and was finally renamed Java, from Java coffee. Gosling designed Java with a C/C++-style syntax that system and application programmers would find familiar.  Sun Microsystems released the first public implementation as Java 1.0 in 1995 (which has since been acquired by Oracle Corporation). The latest version is Java 9, released on September 21, 2017.
  • 5.
    FEATURES OF JAVA Someof the features of java are:  SIMPLE Its syntax is based on C++ (so easier for programmers to learn it after C++).  PLATFORM INDEPENDENT Java code can be run on multiple platforms e.g. Windows, Linux, Sun Solaris, Mac/OS etc. Java code is compiled by the compiler and converted into bytecode. This bytecode is a platform-independent code because it can be run on multiple platforms i.e. Write Once and Run Anywhere(WORA).
  • 7.
     OBJECT ORIENTED Itmeans we organize our software as a combination of different types of objects that incorporates both data and behavior. Basic concepts of OOPs are:  Object  Class  Inheritance  Polymorphism  Abstraction  Encapsulation
  • 8.
     SECURED No explicitpointer used.  ROBUST Robust means strong. Java provide many features like automatic garbage collection, exception handling etc. which makes it a robust language.  PORTABLE We can carry the java bytecode to any platform.
  • 9.
    WHERE IS ITUSED ? According to Sun Microsystem, 3 billion devices run Java. There are many devices where Java is currently used. Some of them are as follows:  Desktop Applications such as media player, antivirus etc.  Web Applications  Enterprise Applications such as banking applications.  Mobile(Android Applications)
  • 10.
    JAVA PLATFORMS/ EDITIONS Thereare 3 platforms or editions of Java:  Java SE (Java Standard Edition) It is commonly used to develop standalone applications like calculator.  Java EE (Java Enterprise Edition) It is a platform which is mainly used to develop web applications.  Java ME (Java Micro Edition) It is a micro platform which is mainly used to develop mobile applications.
  • 11.
    SIMPLE PROGRAM class Simple{ public static void main(String args[]) { System.out.println("Hello Java"); } }
  • 12.
     class isa keyword which is used to declare a class in java.  public is an access modifier which represents visibility, it means it is visible to all.  static is a keyword. If we declare any method as static, it is known as static method. The core advantage of static method is that there is no need to create object to invoke the static method. The main method is executed by the JVM.  void is the return type. It means it doesn't return any value.  main represents start of the program.  String[] args is used for command line argument.  System.out.println() is used as a print statement. EXPLAINATION
  • 13.
     TO COMPILE- javac Simple.java  TO EXECUTE - java Simple  OUTPUT Hello Java RUNNING YOUR PROGRAM
  • 14.
    VERSIONS OF JAVA Asof 2015, only Java 8 is officially supported. Major release versions of Java, along with their release dates:  JDK 1.0 (January 23, 1996)  JDK 1.1 (February 19, 1997)  J2SE 1.2 (December 8, 1998)  J2SE 1.3 (May 8, 2000)  J2SE 1.4 (February 6, 2002)  J2SE 5.0 (September 30, 2004)  Java SE 6 (December 11, 2006)  Java SE 7 (July 28, 2011)  Java SE 8 (March 18, 2014)  Java SE 9 (September 21,2017)
  • 15.