Tuesday, 3 January 2017

Java Tutorial

  Java Tutorial
Q1. What is Java?

Ans. Java is a Machine Independent (Run on any computer) and High Level Programming Language. It is developed by Sun Microsoft's in 1995. It runs on basically Mac OS, Windows XP/7/8.1/10 and various versions of UNIX. Java doesn’t use header file instead use packages.

In Java every class should always a part of package. If the user does not build any package then the compiler will automatically make default package i.e nothing

Platform:- Any software and hardware in which a program runs is known as plat form. Since Java has its own run time environment JRE and API, It is called Platform.

Where is used java ?
According to Sun Micro System 4 million devices run java. there are many devices currently runs in java i.e.

1) Desktop Application such as Media Player, Adobe reader.
2) Mobile Application
3) Web Applications
4) Games etc.

Features of Java: -

The most important feature of the java is the platform  independent  language.                                                                                                                                                                                                                     Platform Independent means that we write and compile the source code in one machine or platform and execute or run on any operating system i.e Windows, Linux, Mac etc

1) Simple:- Java is easy to learn and its syntax is quite simple and easy to understand.

2) Object Oriented: - In Java everything is object which has some data and behavior.
3) Platform Independent:- Unlike another programming languages such as C, C++ etc which are compiled into platform specific machines. Java is write-once, run anywhere languages.
On compilation Java program is compiled in bytecode. This byte code is platform independent and can be run on any machine. and this byte code format also provide security.
4) Multi thread: - Java multithreading feature allow the user can do many task
5)  Secure: - Java program is always run on java  Runtime environment. Java is virus free, temper free system hence it is more secured.
6) Robust: - Java checks the compile time errors and run time errors.
7) Interpreted: - It is used to run Java Programs. The programs are compiled by JVM Code called byte code. The byte code is Machine independent and is able to run on any machine (computer)

8) High Performance:- Java is an interpreted language, so it will never be asfast as compiled language like C, C++. But Java enables high performance with the use of just-in-time compiler.

Application of Java:-

1) Standalone application: -
It is also known as desktop application or window based applications e.g. Window media player, Antivirus etc. Awt and Swing are used in java for creating Standalone applications

2) Mobile application: -
Those applications that is created for mobile devices i.e. Android and Java

3) Web application: -
An application that runs on the server side and creates dynamic pages is called web applications currently, servlet, jsp etc Technologies are used for creating web applications

4) Enterprise Application: -
Enterprise applications are used for making Banking applications. It has the advantage of high level security. EJB is used for creating enterprise applications   
Next page    History of Java              

1 comment:

  1. What a splendid summary you've written here! Anyway, they always said that java is the best option to start with when you have literally no experience with backend and coding at all. But nevertheless, things become complicated when it comes to dealing with java by your own, because there always is some specific issues that may occur like for no reason. Anyway, it always would get better if you had some right resource with you, where you can find solutions for everything went wrong with your java core here For real, when you know for sure where the issue comes from and how to fix it directly, everything will be fine