16/04/2021 Java Tutorial | Learn Java - javatpoint
Java Tutorial
Our core Java programming tutorial is designed for students and working professionals. Java is an object-oriented, class-
based, concurrent, secured and general-purpose computer-programming language. It is a widely used robust technology.
What is Java
Java is a programming language and a platform. Java is a high level, robust, object-oriented and secure programming
language.
Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995. James Gosling is known as
the father of Java. Before Java, its name was Oak. Since Oak was already a registered company, so James Gosling and his
team changed the Oak name to Java.
Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has a runtime
environment (JRE) and API, it is called a platform.
Java Example
Let's have a quick look at Java programming example. A detailed description of Hello Java example is available in next page.
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
Test it Now
https://www.javatpoint.com/java-tutorial 1/5
16/04/2021 Java Tutorial | Learn Java - javatpoint
Application
According to Sun, 3 billion devices run Java. There are many devices where Java is currently used. Some of them are as
follows:
1. Desktop Applications such as acrobat reader, media player, antivirus, etc.
2. Web Applications such as irctc.co.in, javatpoint.com, etc.
3. Enterprise Applications such as banking applications.
4. Mobile
5. Embedded System
6. Smart Card
7. Robotics
8. Games, etc.
Types of Java Applications
There are mainly 4 types of applications that can be created using Java programming:
1) Standalone Application
Standalone applications are also known as desktop applications or window-based applications. These are traditional software
that we need to install on every machine. Examples of standalone application are Media player, antivirus, etc. AWT and Swing
are used in Java for creating standalone applications.
2) Web Application
An application that runs on the server side and creates a dynamic page is called a web application. Currently, Servlet, JSP,
Struts, Spring, Hibernate, JSF, etc. technologies are used for creating web applications in Java.
3) Enterprise Application
An application that is distributed in nature, such as banking applications, etc. is called enterprise application. It has
advantages of the high-level security, load balancing, and clustering. In Java, EJB is used for creating enterprise applications.
4) Mobile Application
An application which is created for mobile devices is called a mobile application. Currently, Android and Java ME are used for
creating mobile applications.
Java Platforms / Editions
There are 4 platforms or editions of Java:
1) Java SE (Java Standard Edition)
It is a Java programming platform. It includes Java programming APIs such as java.lang, java.io, java.net, java.util, java.sql,
java.math etc. It includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O Stream,
Networking, AWT, Swing, Reflection, Collection, etc.
https://www.javatpoint.com/java-tutorial 2/5
16/04/2021 Java Tutorial | Learn Java - javatpoint
2) Java EE (Java Enterprise Edition)
It is an enterprise platform which is mainly used to develop web and enterprise applications. It is built on the top of the Java
SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA, etc.
3) Java ME (Java Micro Edition)
It is a micro platform which is mainly used to develop mobile applications.
4) JavaFX
It is used to develop rich internet applications. It uses a light-weight user interface API.
Prerequisite
To learn Java, you must have the basic knowledge of C/C++ programming language.
Audience
Our Java programming tutorial is designed to help beginners and professionals.
Problem
We assure that you will not find any problem in this Java tutorial. However, if there is any mistake, please post the problem in
the contact form.
Do You Know?
What is the difference between JRE and JVM?
What is the purpose of JIT compiler?
Can we save the java source file without any name?
Why java uses the concept of Unicode system?
What will we learn in Basics of Java?
History of Java
Features of Java
Hello Java Program
Program Internal
How to set path?
Difference between JDK,JRE and JVM
Internal Details of JVM
Variable and Data Type
Unicode System
Operators
Next →
Youtube For Videos Join Our Youtube Channel: Join Now
Help Others, Please Share
https://www.javatpoint.com/java-tutorial 3/5
16/04/2021 Java Tutorial | Learn Java - javatpoint
Learn Latest Tutorials
SoapUI RPA tutorial manual testing cucumber
tutorial tutorial tutorial
RPA
SoapUI Manual T. Cucumber
Appium postgresql Apache Solr MongoDB
tutorial tutorial Tutorial tutorial
Appium PostgreSQL Solr MongoDB
Gimp Tutorial Verilog Teradata PhoneGap
Tutorial Tutorial Tutorial
Gimp
Verilog Teradata PhoneGap
Preparation
Aptitude Logical Verbal Ability Interview
Reasoning Questions
Aptitude Verbal A.
Reasoning Interview
Company
Interview
Questions
Company
Trending Technologies
Artificial AWS Tutorial Selenium Cloud tutorial
Intelligence tutorial
Tutorial AWS Cloud
Selenium
AI
Hadoop ReactJS Data Science Angular 7
tutorial Tutorial Tutorial Tutorial
Hadoop ReactJS D. Science Angular 7
Blockchain Git Tutorial Machine DevOps
Tutorial Learning Tutorial Tutorial
Git
Blockchain ML DevOps
https://www.javatpoint.com/java-tutorial 4/5
16/04/2021 Java Tutorial | Learn Java - javatpoint
B.Tech / MCA
DBMS tutorial Data DAA tutorial Operating
Structures System tutorial
DBMS tutorial DAA
OS
DS
Computer Compiler Computer Discrete
Network tutorial Design tutorial Organization and Mathematics
Architecture Tutorial
C. Network Compiler D.
COA D. Math.
Ethical Computer Software html tutorial
Hacking Tutorial Graphics Tutorial Engineering
Tutorial Web Tech.
E. Hacking C. Graphics
Software E.
Cyber Automata C Language C++ tutorial
Security tutorial Tutorial tutorial
C++
Cyber Sec. Automata C
Java tutorial .Net Python tutorial List of
Framework Programs
Java tutorial Python
Programs
.Net
Control Data Mining
Systems tutorial Tutorial
Control S. Data Mining
https://www.javatpoint.com/java-tutorial 5/5