English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
New features
What is Javaprogramming languageandPlatform. Java is a high-level, robust, object-oriented, and secure programming language.
Java was created bySun Microsystems(Now a subsidiary of Oracle)in1995year developedJamesGoslingis known as the father of Java. Before Java, its name wasOakSince Oak was already a registered company, James Gosling and his team renamed Oak to Java.
Platform:Any hardware or software environment where a program runs is called a platform. Since Java has a runtime environment (JRE) and API, it is called a platform.
Let's take a quick look at a Java programming example. The detailed explanation of the Hello Java example is provided on the next page.
public class Simple{ public static void main(String args[]){ System.out.println("Hello Java"); } }Test and see ‹/›
Output result:
Hello Java
According to Sun's statistics, there are3billion devices run Java. Currently, there are many devices that use Java. Some of them are as follows:
desktop applications, such as Acrobat Reader, media players, antivirus software, etc.
Web applications, such as java.com, etc.
enterprise applications, such as banking applications.
mobile devices
embedded systems
smart cards
robotics technology
games, etc.
The main types of applications that can be created using Java programming are4Types:
Standalone applications are also known as desktop applications or window-based applications. These are the traditional software we need to install on each computer. Examples of standalone applications include Media Player, antivirus software, etc. AWT and Swing are used in Java to create standalone applications.
Applications that run on the server side and create dynamic pages are called Web applications. Currently, technologies such as Servlet, JSP, Struts, Spring, Hibernate, JSF are used to create Web applications in Java.
Essentially distributed applications, such as banking applications, are called enterprise applications. They have advantages such as advanced security, load balancing, and clustering. In Java, EJB is used to create enterprise applications.
Applications created for mobile devices are called mobile applications. Currently, Android and Java ME are used to create mobile applications.
Java has4There are many platforms or versions:
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, and so on. It includes features such as OOP, String, Regex, Exception, inner classes, multithreading, I / Object streams, networking, AWT, Swing, reflection, collection, etc.
It is an enterprise platform, mainly used for developing Web and enterprise applications. It is built on top of the Java SE platform. It includes topics such as Servlet, JSP, Web services, EJB, JPA, etc.
This is a micro platform, mainly used for developing mobile applications.
It is used to develop rich Internet applications. It uses lightweight user interface APIs.
If you have some C knowledge before learning Java / C ++Basic knowledge of programming languages, you will learn faster and easier to start.
Our Java programming tutorial is designed to help beginners and professionals.
If you find any problems in using this Java tutorial, please submit feedback, and we will correct them in the first time.