INSTALLATION:
1) Download and Install latest Java JDK.
i) Type “download Java jdk” in google.com and choose the first link:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
ii) Accept the License Agreement and choose the required OS to download.
iii) Install the downloaded Installer (EXE) file.
2) Download the latest Eclipse IDE.
i) Type “download Eclipse” in google.com and choose the first link:
http://www.eclipse.org/downloads/
ii) Choose Eclipse Classic and Windows 32/64 Bit based on system configuration
and download.
iii) Extract the downloaded ZIP file to the required location.
3) Open the Eclipse Application
4) It will prompt for the Workspace.(By default there will a folder named workspace under
“C:/user/Documents and Settings”)
5) Choose the required location for workspace and give OK.
Now, Work Environment has been setup for creation and execution of Java Programs.
NOTE:
Eclipse stores the created projects in a folder called a workspace.
JAVA AND ITS FEATURES:
Java is a high-level programming language originally developed by James Gosling at Sun
Microsystems in the year 1995. It was acquired by Oracle in 2010 (January 27).
1) Open Source
2) Initially developed for Electronic Products such as Television, Microwave Ovens, etc but
later has been used for the development of Web Applications
3) Simple – Syntax is been derived from C/C++ programming. Concepts such as Pointers,
Operator Overloading, etc have been removed.
4) It is a platform – Any Hardware/Software in which a program runs is known as a
platform. Java has its own execution environment called JVM (Java Runtime
Environment) and so called a Platform.
5) Platform Independent - Java code is compiled to get bytecode which is Platform
Independent (i.e.) WORA (Write Once, Run Anywhere) – It can be compiled only once
and can run on any platform such as Windows, Mac, Unix, Linux, etc.
6) High Security – No Pointers are used, uses its own environment JVM for Execution.
7) Object Oriented Programming
8) Name History:
Oak Tree
Oak
Green
Java Coffee
Java
9) Robust – Java is Strong as it has strong memory management, automatic garbage
collection, exception handling and type checking.
10) Distributed – allows creating distributed applications using RMI and EJB technologies.
We can access any files by calling methods from any machine in the internet.
11) Multithreaded – A thread is like a separate program executing concurrently. In Java,
using threads we can execute many tasks at a time and it shares the same memory.
12) Case Sensitive – Java considers small and capital letters as different.
Eg: “Hello” and “hello” are different.
TYPES OF JAVA APPLICATIONS:
1) Standalone Applications – Also called Desktop / Window based Applications. It uses
AWT or Swings.
Eg: Media Player, Anti-virus
2) Web Applications – An Application that runs on the server side and produces dynamic
pages. JSP, Servlets, JSF, Struts, etc are used.
3) Enterprise Applications – An Application which is distributed in nature such as Banking
Application which involves high security, load balancing, clustering, etc. EJB technology
is been used.
4) Mobile Application – An Application for mobile devices. Android and J2ME
technologies are used.