Java Tutorial - Learn Java Programming - Javatpoint
Java Tutorial - Learn Java Programming - Javatpoint
ADVERTISEMENT BY ADRECOVER
https://www.javatpoint.com/java-tutorial 1/8
9/2/2021 Java Tutorial | Learn Java Programming - 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 name from Oak 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.
Simple.java
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
Test it Now
https://www.javatpoint.com/java-tutorial 2/8
9/2/2021 Java Tutorial | Learn Java Programming - 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:
4. Mobile
5. Embedded System
6. Smart Card
7. Robotics
8. Games, etc.
1) Standalone Application
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 an enterprise
application. It has advantages like high-level security, load balancing, and clustering. In Java, EJB is
used for creating enterprise applications.
4) Mobile Application
https://www.javatpoint.com/java-tutorial 3/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint
An application which is created for mobile devices is called a mobile application. Currently, Android
and Java ME are used for creating mobile applications.
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.
It is an enterprise platform that is mainly used to develop web and enterprise applications. It is built
on top of the Java SE platform. It includes topics like Servlet, JSP, Web Services, EJB, JPA, etc.
4) JavaFX
It is used to develop rich internet applications. It uses a lightweight 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.
https://www.javatpoint.com/java-tutorial 4/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint
Do You Know?
History of Java
Features of Java
Program Internal
Unicode System
Operators
Next →
ADVERTISEMENT BY ADRECOVER
https://www.javatpoint.com/java-tutorial 5/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint
Youtube
For Videos Join Our Youtube Channel: Join Now
Feedback
Preparation
Company
Interview
Questions
Company Questions
Trending Technologies
B.Tech / MCA
https://www.javatpoint.com/java-tutorial 7/8
9/2/2021 Java Tutorial | Learn Java Programming - javatpoint
ADVERTISEMENT BY ADRECOVER
https://www.javatpoint.com/java-tutorial 8/8