Java Note
Java Note
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
.
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 .
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
JVM, JRE and JDK are platform dependent because configuration of each OS
differs. But, Java is platform independent.
Save with : d:\dipika\one.java
Static : keyword
Main: function
String : is a datatype
InputStream class
OutputStream class