0% found this document useful (0 votes)
3 views13 pages

Java Note

Java is a versatile programming language and platform that supports various application types, including standalone, web, enterprise, and mobile applications. Developed by Sun Microsystems under James Gosling in 1991, Java is known for its object-oriented features and platform independence. Key components include the Java Virtual Machine (JVM), Java Runtime Environment (JRE), and Java Development Kit (JDK), which facilitate the execution and development of Java applications.

Uploaded by

rishi132002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views13 pages

Java Note

Java is a versatile programming language and platform that supports various application types, including standalone, web, enterprise, and mobile applications. Developed by Sun Microsystems under James Gosling in 1991, Java is known for its object-oriented features and platform independence. Key components include the Java Virtual Machine (JVM), Java Runtime Environment (JRE), and Java Development Kit (JDK), which facilitate the execution and development of Java applications.

Uploaded by

rishi132002
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

JAVA

• Java is a programming language and a platform.


• Platform Any hardware or software environment in which a program runs, known as a
platform.

There are mainly 4 type of applications that can be created


using java:

1) Standalone Application
It is also known as desktop application or window-based application. An application that
we need to install on every machine such as media player, antivirus etc. AWT and Swing
are used in java for creating standalone applications .

2) Web Application
An application that runs on the server side and creates dynamic page, is called web
application. Currently, servlet, jsp, struts, jsf etc. technologies are used for creating web
applications in java.
3) Enterprise Application
An application that is distributed in nature, such as banking applications etc. It has the advantage of high level security, load balancing
and clustering. In java, EJB is used for creating enterprise applications.

4) Mobile Application
An application that is created for mobile devices. Currently Android and Java ME are used for creating mobile applications.

Java was developed by computer professional under the guidance of James Gosling in 1991.java is product of Sun
Microsystems Company. Java is a object Oriented Programming Language .
Java Version

JDK Alpha and Beta


JDK 1.0
JDK 1.1
J2SE 1.2
J2SE 1.3
J2SE 1.4
J2SE 5.0
Java SE 6
Java SE 7
Java SE 8

.
Features of Java
 Simple
 Object-Oriented
 Platform independent
 Secured
 Robust
 Portable
 High Performance
 Multithreaded
Java program type in notepad /edit plus see the output in dos windows .

How to set path


My computer ->C Drive->Program files-> Java -> Jdk 1.6 -> bin
OR
C : \Program files\Java \jdk1.6.0\bin

Right click on My computer-> click on properties-> advanced system setting -> click on
advanced tab-> environment variable ->new tab->
Variable name : path
Variable value : c:\program files \java\jdk1.6.0\bin
Ok
Ok
Dos
Set path =“c:\program files \java\jdk 1.6.0\bin”
class file

classloader

Bytecode verifier

Interpreter

Runtime

Hardware
JVM
JVM (Java Virtual Machine) is a specification that provides runtime environment
in which java byte code can be executed. JVMs are available for many hardware
and software platforms.

JRE
JRE(Java Runtime Environment) is used to provide runtime environment. It
contains set of libraries + other files that JVM uses at runtime.

JDK

JDK is an acronym for Java Development Kit. It contains JRE + development


tools.

JVM, JRE and JDK are platform dependent because configuration of each OS
differs. But, Java is platform independent.
Save with : d:\dipika\one.java

Compile : javac filename.java

Run : java classname

Public :access specifier

Static : keyword

Void : return type

Main: function

String : is a datatype

Args: is variable name

Dos : disk operating system


Data Type
What is mean by System.out.println?

System: System is class from java. lang package

out: out is object of PrintStream class defined in System class

println:it is method of PrintStream class


Input Output stream

Three streams are:


1) System.out: standard output stream
2) System.in: standard input stream
3) System.err: standard error
Input stream: uses an input stream to read data from a source

InputStream class
OutputStream class

You might also like