JAVA Introduction
JAVA Introduction
Ex:-
Class Test
{
Public static void main (String [] args)
{
System.out.println (“welcome to java language”);
}
}
According to the SUN 3 billion devices run on the java language only.
Technologies Depends on :-
JAVA VERSIONS:-
Java Alpha & beta : 1995
JDK1.1 : 1997
JAVA SE 6 : 2006
JAVA SE 7 : 2011
JAVA SE 8 : 2014
C –language:-
Extensions : .c & .h
Released in : 1972
Ex:-
#include<stdio.h>
Void main()
{
Printf(“hello Java”);
}
Compilation :- alt+f5
Execution :- ctrl+f9
Output :- hello Java
CPP –language:-
Implementation Languages : C
Ex:-
#include<iostream.h>
Void main()
{
Cout<<“hello Javaech”;
}
Compilation :- alt+f5
Execution :- ctrl+f9
Output :- hello Javaech
As per the sun micro system standard the java language is divided into three types.
1) J2SE/JSE(java 2 standard edition)
2) J2EE/JEE(java 2 enterprise edition)
3) J2ME/JME(java 2 micro edition)
J2SE:-
By using j2se we are able to develop the standalone applications.
Ex:- notepad, WordPad, paint, Google Talk………..etc
Standalone applications:-
1) Standalone applications are the java applications which don’t need the client
server architecture.
2) The standalone applications applicable for the only one desktop hence it is
called desktop applications or window based applications.
3) For the standalone applications doesn’t need internet connections.
4) It is a local application it doesn’t need any other external application support.
5) This type of the applications we can launch by using the command line or by
using the executable jar.
Client Database
J2EE:-
By using j2ee we are able to develop the web based applications.
Ex:- Gmail, yahoo mail, bank, reservation…………etc
Web-applications:-
1) Web applications are the java applications which needs client and server concept.
2) Web applications must need the internet connections to access the application.
3) The application which is present in the internet is called the web application.
4) Web application can be launched by using HTTP driven. HTTP request sent to
the Servlet present in the server side.
Client:-
The person who is sending the request is called client. All web browsers come under the
clients. Ex:- InternetExploral, MozillaFrefox, opera………..etc
Server:-
The server contains the applications. The main purpose of the server is
a. It will contain the application.
b. Take the request from the client.
c. Based on the taken request it will identify the project resource and execute that
project resource.
d. By executing the project some response will be generated that response is dispatched to
the
client browser.
Ex:- Tomcat,GlassFish,WebLogic,JBOSS,WebSphere………..etc
DataBase:-
DataBase is used to store the details like client details, application details,
registration details……etc.
Ex:- Oracle, MySql………..etc
J2ME:-
By using j2me we are able to develop the applications that applications only run on
mobile devices.
As a software engineer we must know these
technologies:-HTML(Hyper Text Markup Language):-
It is used for web pages designing. Introduced by World Wide Web Consortium and
developed by Tim Berners-Lee
Old new
JavaScript(JS):-
It is designed by Brendan Eich at NetScape Communications Corporation in 1995.it is
used to validate the forms.
Java:-
Developed by James Gosling at Sun Micro Systems in 1995 used to develop particular for client-
server web applications. Now it is merged into Oracle Corporation.
.net:-
Developed by Microsoft peoples in 2002 and it is used to develop the we based applications.
Android:-
It is a Linux based mobile phone operating system used to develop the mobile applications
that runs only on mobile devices.
Technology:-
1. J2SE
2. J2EE
3. J2ME
Frame works:-
1. Struts
2. Spring
3. Hiber
nate Servers:-
1. Tomcat
2. Glassfish
3. Jboss
4. Weblogic
5. Websphere……………
IDE(integrated development environment):-
1. Eclips
2. Myeclips
3. Netbeans
4. Jdeveloper…………………
Database :-
Oracle Mysql……………..
Difference between
JAVA Features:-
1. Simple
2. Object Oriented
3. Platform Independent
4. Architectural Neutral
5. Portable
6. Robust
7. Secure
8. Dynamic
9. Distributed
10. Multithread
11. Interpretive
12. High Performance
1. Simple:-
Java is a simple programming language because:
▪
Java technology has eliminated all the difficult and confusion oriented concepts
like pointers, multiple inheritance in the java language.
▪
The c,cpp syntaxes easy to understand and easy to write. Java maintains C and CPP
syntax mainly hence java is simple language.
▪
Java tech takes less time to compile and execute the program.
2. Object Oriented:-
Java is object oriented technology because to represent total data in the form of object. By
using object reference we are calling all the methods, variables which is present in
that class.
Class Test
{ Test t=new Test(); Class data
Class data; t
}
The total java language is dependent on object only hence we can say java is a object
oriented technology.
3. Platform Independent :-
Compile the Java program on one OS (operating system) that compiled file can execute in
any OS(operating system) is called Platform Independent Nature. The java is platform
independent language. The java applications allows its applications compilation one
operating system that compiled (.class) files can be executed in any operating system.
exe
Test.class JVM Windows
Test.java
exe
JVM Linux
Javac
JVM
exe
JVM Macos
exe Solaris
source file compilation JVM understandable file output console
4. Architectural Neutral:-
Java tech applications compiled in one Architecture (hardware----RAM, Hard Disk) and
that Compiled program runs on any hardware architecture(hardware) is called
Architectural Neutral.
5. Portable:-
In Java tech the applications are compiled and executed in any OS(operating system) and
any Architecture(hardware) hence we can say java is a portable language.
6. Robust:-
Any technology if it is good at two main areas it is said to be ROBUST 1
Exception Handling
2 Memory Allocation
JAVA is Robust because
a. JAVA is having very good predefined Exception Handling mechanism whenever we are
getting exception we are having meaning full information.
b. JAVA is having very good memory management system that is Dynamic Memory (at
runtime the memory is allocated) Allocation which allocates and deallocates memory
for objects at runtime.
7. Secure:-
To provide implicit security Java provide one component inside JVM called Security
Manager.
To provide explicit security for the Java applications we are having very good predefined
library in the form of java.Security.package.
Web security for web applications we are having JAAS(Java Authentication and
Authorization Services) for distributed applications.
8. Dynamic:-
Java is dynamic technology it follows dynamic memory allocation(at runtime the
memory is allocated) and dynamic loading to perform the operations.
9. Distributed:-
By using JAVA technology we are preparing standalone applications and Distributed
applications.
Standalone applications are java applications it doesn’t need client server architecture.
web applications are java applications it need client server architecture.
Distributed applications are the applications the project code is distributed in multiple
number of jvm’s.
10. Multithreaded: -
Thread is a light weight process and a small task in large program.
If any tech allows executing single thread at a time such type of technologies is called
single threaded technology.
If any technology allows creating and executing more than one thread called as
Multithreaded technology called JAVA.
11. Interpretive:-
JAVA tech is both Interpretive and Completive by using Interpretator we are converting
source code into byte code and the interpretator is a part of JVM.