Core Java 1) Basics Of Java 1) Basics of java
Core Java 1) Basics Of Java 1) Basics of java
Ltd
Affordable & Live Training
Address: P2 304, Pentagon Tower 2, Magarpatta City IT Park, Hadapsar, Pune 28, India. Contact:
8766016640 Email: puneripatternpvtltd@gmail.com Website: www.puneripattern.com
Core Java
Basics of Java:
WHAT IS THE NEED OF JAVA?
WHERE IT IS USED?
WHAT IS JAVA?
HISTORY OF JAVA?
Java technology is wide used currently. Let’s start learning of java from basic questions like what is java, where it is used, what type of application
are created in java and why use java.
What is Java?
Platform any hardware of software environment in which a program runs, known as a platform. Since java has its own Runtime Environment
(JRE) and API, it is called platform.
Where it is used?
There are many devices where java is currently used. Some of them are as follows:
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 andSwing are used in java for creating standalone application
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. technology are used for creating web application in java.
3. Enterprise Application An application that is distributed in nature, such as banking application etc. it has the advantage of high level
security, load balancing and clustering. In java, EJB is used for creating enterprise application.
4. Mobile Application An application that is created for mobile devices. Currently Android and Java ME are used for creating mobile
application.
History of JAVA:-
James Gosling, Mike Sheridan, and Patrick Naughton initiated the java language project in June 1991.
Originally designed for small, embedded system in electronic appliances like set – top boxes
Initially called Oak and was developed as part of the Green project
In 1995, Oak was renamed as “JAVA”. Java is just name not an acronym.
Originally developed by James Gosling at Sun Microsystems(which in now a subsidiary if oracle Corporation) and released in 1995.
JDK 1.0 released in (January 23, 1996)
Core Java
Advance Java
Mobile Java
The “JDK” is the java Development Kit. i.e. , the JDK is bundle of software that you can use to develop java based software.
Each JDK contains one (or more) JRE’s along with the various development tools like the java source compilers, bundling and development tools,
debuggers, development libraries, etc.
The java Runtime Environment (JRE) provides the libraries, the java virtual machine, and other components to run applets and applications
written in the java programming language.
The Java Virtual Machine is responsible for the hardware and operating system independence of the java SE platform, the small size of compiled
code (bytecode), and platform security.
A java compiler compiles source files (.java) to bytecode files (.class). Sun gives developers a free java compiler which is invoked with
the ‘javac’ command.
A java interpreter is usually referred to as the Java Virtual Machine (or JVM). It reads and executes the bytecodes in the .class files (or
.
in some collection of class files, like a zipor .jar file). Sun also supplies a free version of the JVM which is invoked with the ‘java’
command.
Where is gets confusing is when people talk about a Just-In-Time compiler (or JIT compiler). This is actually part of a JVM. Its purpose
is to take the generic (i.e. cross-platform) bytecodes and compile them into more machine-specific instructions (allowing the program
.
to run significantly faster). Even though it is referred to as a JIT ‘compiler’, it is part of the Virtual Machine