Chap1 Notes PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

Introduction

Mrs. Apurwa Barve (IMCC)


About Java Java

 Developed by James Gosling at Sun Microsystems and released in 1995.


 Current version is Java 14 released in March 2020
 Has been in the market for 24 years.
 Java is a general-purpose programming language that is class-based, object-oriented.

James Gosling Java Mascot - Duke Java Logo

Mrs. Apurwa Barve (IMCC)


Features of Java Java
a> Object oriented -- Everything is considered as an Object. Simple and easy to extend

b> Simple -- Very few keywords. Well structured.


c> Robust -- Absence of pointers. Automatic memory management by JVM
instead of operating system, better error handling using try-catch
block.

d> Distributed -- Allows to develop and maintain systems running on different


locations. Also lets them communicate with each other. Uses
TCP/IP protocols for the same. Also supports RMI (Remote
Method Invocation.)

e> Secured -- Every program is run completely within the JVM using BYTECODE.
Thus a Java application has very little or no chance of accessing any
other system specific information that falls outside the JVM without
proper authentication.

Mrs. Apurwa Barve (IMCC)


Features of Java Java
f> Compiled & -- Source code is first compiled into BYTECODE. JVM then
Interpreted interprets every statement of the bytecode and converts it into
an executing program.

g> Platform -- Does not depend on a particular platform for running the
Independent applications because of Bytecode.
Linux

Executable
Source code compiled Bytecode interpreted Program Windows

Mac

h> Multithreaded -- The ability to create multiple threads helps in faster program
execution.

i> Garbage -- The JVM takes the responsibility of cleaning unused memory
Collection spaces by itself thus freeing the programmer of this task.

Mrs. Apurwa Barve (IMCC)


Flavors of Java Java
 Java has been able to evolve with time thus able to serve user requirements across
platforms and functionalities.

 The following 3 flavours of Java make it possible to develop applications that can be used
by a variety of audiences thus making Java a market leader and all en-compassing.
Java

Java SE
Java EE Java ME
Java Standard
Java Enterprise Edition Java Micro Edition
Edition

 For n/w based, intranet and  For mobile


 Most widely used.
internet based applications. application
 For PC and server
 To support applications with development.
based application
large number of simultaneous  For devices like
development.
users cellular phones,
 AWT, Swing, Applet
 JSP, Struts , Servlets, etc palmtops, set top
boxes, etc
 Andriod
Mrs. Apurwa Barve (IMCC)
Installing Java Java

For step by step installation guidelines of JDK kindly follow the video

Mrs. Apurwa Barve (IMCC)


Java Environment – JVM, JRE and JDK Java

JVM  Loads code  Verifies code  Executes code


(Java Virtual Machine)

 Provides runtime environment.


Other files,libs,
JVM
etc

JRE (Java Runtime Environment)

Mrs. Apurwa Barve (IMCC)


Java Environment – JVM, JRE and JDK Java

Development tools
like javac, java,
Other files,libs, javap,jadoc,
JVM
etc javah, java
debugger
etc.
JRE

JDK (Java Development Kit)

 Has tools for compiling and running java programs.

Mrs. Apurwa Barve (IMCC)


JDK Environment Java

Java
source Program execution
code

JDK Byte code JRE JVM

Flow of execution of Java Program


What we learnt? Java

Mrs. Apurwa Barve (IMCC)


Quiz Java

 Kindly take the quiz of this chapter to assess your knowledge of concepts covered in this
chapter.

Mrs. Apurwa Barve (IMCC)


Extra Reading Java

 Java Programming Language :


https://en.wikipedia.org/wiki/Java_(programming_language)
 JDK,JRE and JVM:
https://medium.com/@mannverma/the-secret-of-java-jdk-jre-jvm-difference-
fa35201650ca

Mrs. Apurwa Barve (IMCC)


Thank you!

Mrs. Apurwa Barve (IMCC)

You might also like