Top Banner
By javawithease
17

What is Java and How its is Generated

Jul 18, 2015

Download

Technology

javaease
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: What is Java and How its is Generated

Byjavawithease

Page 2: What is Java and How its is Generated

Java was originally designed by Sun Microsystems Inc. Work Started on 1991 First Version was released on 1995 named Java 1.0 James Gosling is known as father of Java, he was the Vice President of Sun Microsystem till 2010 Recently Sun Microsystems is taken over by Oracle Incorporation

Page 3: What is Java and How its is Generated

Java

J2SE J2EE Java CardJ2ME

Page 4: What is Java and How its is Generated
Page 5: What is Java and How its is Generated
Page 6: What is Java and How its is Generated
Page 7: What is Java and How its is Generated

certifications for Java technologies:

* Java Platform, Standard Edition (Java SE) o Sun Certified Java Associate o Sun Certified Java Programmer o Sun Certified Java Developer

* Java Platform, Enterprise Edition (Java EE) o Sun Certified Web Component Developer o Sun Certified Business Component Developer o Sun Certified Developer for Java Web Services o Sun Certified Enterprise Architect

* Java Platform, Micro Edition (Java ME) o Sun Certified Mobile Application Developer

Page 8: What is Java and How its is Generated
Page 9: What is Java and How its is Generated
Page 10: What is Java and How its is Generated

Java is a Programming Language Java is a Development Environment Java is an Application Environment Java is a Deployment Environment

Page 11: What is Java and How its is Generated

Simple to program Platform Independent Portable Robust and Secure Speedup the Development Based on OOPs Multithreaded

Page 12: What is Java and How its is Generated

There are four tools that make Java as Java

JVM (Java Virtual Machine) JRE (Java Runtime Environment) Garbage Collection JVM tools interface

Page 13: What is Java and How its is Generated

JVM is an imaginary machine which works like an emulator at the runtime. All the JVM code stores in .class file which is generated after compilation. The codes inside .class file is known as Bytecodes and these Bytecodes is the language of JVM

a.java compiler a.class

Windows

UNIX/LINUX

Mac

JVM

Page 14: What is Java and How its is Generated

JRE Contains:

Class Loader Bytecodes Verifier Interpreter/JIT Compiler Runtime Hardware

Page 15: What is Java and How its is Generated

a.java

a.class

compiler

Load from Hard disk,

network module

Class loader

Bytecodes verifier

Hardware

Interpreter

Runtime

Page 16: What is Java and How its is Generated

In c, C++ we were responsible for the de-allocation of memory. This was a difficult exercise at times , because we do not always know in advance when memory should be released.

The Java Programming language removes your from the responsibility of de-allocating memory. It provide a system level thread that tracks each memory allocation.

Advantage: Save data from Memory Leaks

Page 17: What is Java and How its is Generated

public class HelloWorld{

private String message=“Welcome in Java Programming”;public String sayHello(){

System.out.println(message);return message;

}public static void main(String[] args){

HelloWorld hello=new HelloWorld();hello.sayHello();

}}

Output:Welcome in Java Programming