Java Programming Tutorial
Our core Java programming tutorial is planed for students and working professionals. Java is an object-oriented, class-based, concurrent, acquired and general-purpose computer-programming language. It is a broadly used strong technology.
What is Java?
Java is a programming language and a platform. Java is a high level, strong , object-oriented and fixed programming language.
Java was developed by Sun Microsystems within the year 1995. James Gosling is called the daddy of Java. Before Java, its was known as Oak. Since Oak was already a inscribed company, therefore James goose and his team modified the Oak name to Java.
Platform: Any hardware or software package atmosphere during which a program runs, is understood as a platform. Since Java contains a runtime atmosphere (JRE) and API, it’s called platform.
Example
import java.io.*;
Class Simple{
Public static void main(String args[]){
System.out.println(“Hello From Java”);
}
}
Output:
Hello From Java
Application:
According to Sun, Three billion devices are running by Java. There are many devices where Java is directly used. A number of them are:
- Desktop Applications like acrobat reader, media player, antivirus, etc.
- Web Applications like irctc.co.in, javatpoint.com, etc.
- Enterprise Applications like banking applications.
- Mobile, Embedded System, Smart Card, Robotics, Games, etc
Types of Java Applications:-
There are mainly four types of applications that can be designed by using Java programming:
- Standalone Application:- Standalone applications are also called as desktop applications or window-based applications. These are traditional software that we require to install on every machine. Standalone application are Media player, antivirus, etc. AWT and Swing ar employed in Java for making standalone applications.
- Web Application:- An application that runs on the server facet and creates a dynamic page is termed an internet application. Currently Servlet, JSP, Struts, Spring, Hibernate, JSF etc ; technologies square measure used for making internet applications in Java.
- Enterprise Application:- An application that’s distributed in nature, like banking applications, etc. is named enterprise application. It’s blessings of the high-level security, load equalization, and bunch. In Java, EJB is employed for making enterprise applications.
- Mobile Application:- An application that is formed for mobile devices is termed a mobile application. Currently, automaton and Java Maine square measure used for making mobile applications.
Java Platforms / Editions:
Java has 4 platforms or editions:
- Java SE (Java Standard Edition):- It is a Java platform. It includes Java programming arthropod genus like java.lang, java.io, java.net, java.util, java.sql, java.math etc. It includes central topics like OOPs, String, Regex, Exception, Inner categories, Multithreading, I/O Stream, Networking, AWT, Swing, Reflection, Collection, etc.
- Java EE (Java Enterprise Edition):- It is associate enterprise platform that is especially accustomed develop internet and enterprise applications. It’s engineered on the highest of the Java SE platform. It includes topics like Servlet, JSP, internet Services, EJB, JPA, etc.
- Java ME (Java Micro Edition):- It is a small platform that is especially accustomed develop mobile applications.
- JavaFX:- It is accustomed develop made net applications. It uses a light-weight programme API.
Prerequisite:-
To learn Java, you need to have the fundamental information of C/C++ programing language. Our Java programming tutorial is specifically designed to support beginners and professionals, so you don't need to worry.
History of Java Programming Language
The history of Java is quite interesting. Java was mainly designed for interactive television, but it was so much upgraded technology for the digital cable television industry at the time. The past history of Java began with the Green Team. Java team members (those who are also known as Green Team), established this project to develop a language for digital devices such as set-top boxes, televisions, and else. However, it was fitted for internet programming. Next, Java technology was integrated by Netscape.
The rules for creating Java programming were "Easy, Smooth, Prosperous, Manageable, Platform-independent, Fully Secured, High Performance, Multithreaded, Architecture Neutral, Object-Oriented, Interpreted, and Dynamic". Java was evolved in 1995 by James Gosling, who is mostly known as the father of Java. James Gosling and his team members initiated the project in the early ‘90s.
At present, Java is used in internet programming, in mobile devices, in games, in e-business solutions, and else. There are given important points that describe the history of Java.
- 3 person named James Gosling, Mike Sheridan and Patrick Naughton started the Java language project in June 1991. The small team of sis un engineers named Green Team.
- At the beginning, it was designed for small, embedded system in electronic devices like set-top boxes.
- At first, it was termed “Green Talk” James Gosling, and the file extension was .gt.
- Then, it was named Oak and was refined as a part of the project.
Why Java named "Oak"?
Oak is a symbol of strength. Also, it is chosen as a national tree of many countries like America, France, Germany, etc. Oak was named "Java" in 1995 cause it was already a trademark by Oak Technologies then.
Why Java Programming named "Java"?
The team decided to set a new name. The preferred words were "dynamic", "revolutionary", "Silk", "jolt", "DNA", and else. They wished for something that presents the essence of technology. These words were easy and cool to spell.
- The name “Java” was one of the top choices among them. So they selected this because of its uniqueness.
- Java is mainly an island of Indonesia where the first coffee was produced (it’s called java coffee). It is one kind of espresso bean. This name was selected by James Gosling. He selected this name when having coffee.
- It is noticeable that Java is not an acronym, it’s just a name.10) At first, James Gosling developed Java at a company named Sun Microsystems. (The company is now a subsidiary of Oracle Corporation) and released in 1995.
- Java achieved the title” one of the 10 best products of 1995”. It was given by the “Time magazine”.
- 12) The JDK 1.0 was released on January 23, 1997. It was the first release of Java. There have been many extra features added to the language. Now Java is using in Windows applications, Web applications, enterprise applications, mobile applications, cards, and else. The latest versions add the new features in Java.
Features of Java
The dominant objective of Java programming language creation was to make it transportable , elementary and secure programming language. Apart from this, there are also some superb features which play an important role in the popularity of this language. The specialty of Java are also known as java policyspeak.
A list of most important specialty of Java language is given below.