English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Java Basic Tutorial

Online Tools

each loop

Java Arrays

Java Object-Oriented (I)

Java Object-Oriented (II)

Java Exception Handling

resources

Java List

Java Queue (queue)

Java Map collection

Java Set collection/Java Input/Output (I/O)

Java I/O/Java Reader

Writer

Java Basic Tutorial

New features

Our core Java programming tutorial is designed for students, beginners, and professionals. Java is an object-oriented, class-based, concurrent, secure, and general-purpose computer programming language. It is a widely used powerful technology.

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.

Java example

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

Application domains

According to Sun's statistics, there are3billion devices run Java. Currently, there are many devices that use Java. Some of them are as follows:

  1. desktop applications, such as Acrobat Reader, media players, antivirus software, etc.

  2. Web applications, such as java.com, etc.

  3. enterprise applications, such as banking applications.

  4. mobile devices

  5. embedded systems

  6. smart cards

  7. robotics technology

  8. games, etc.

Types of Java applications

The main types of applications that can be created using Java programming are4Types:

1)Standalone applications

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.

2)Web 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.

3)Enterprise applications

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.

4)Mobile applications

Applications created for mobile devices are called mobile applications. Currently, Android and Java ME are used to create mobile applications.

Java platform/versions

Java has4There are many platforms or versions:

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, and so on. It includes features such as OOP, String, Regex, Exception, inner classes, multithreading, I / Object streams, networking, AWT, Swing, reflection, collection, etc.

2)Java EE (Java Enterprise Edition)

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.

3)Java ME (Java Micro Edition)

This is a micro platform, mainly used for developing mobile applications.

4)JavaFX

It is used to develop rich Internet applications. It uses lightweight user interface APIs.

Prerequisites

If you have some C knowledge before learning Java / C ++Basic knowledge of programming languages, you will learn faster and easier to start.

Target Audience

Our Java programming tutorial is designed to help beginners and professionals.

Problem

If you find any problems in using this Java tutorial, please submit feedback, and we will correct them in the first time.