Home >Java >javaTutorial >Hello world in java

Hello world in java

WBOY
WBOYOriginal
2024-07-27 01:12:331167browse

Hello world in java

public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}

What is Java?
Java is a popular programming language, created in 1995.

It is owned by Oracle, and more than 3 billion devices run Java.

It is used for:

1.Mobile applications (specially Android apps)
2.Desktop applications
3.Web applications
4.Web servers and application servers
5.Games
6.Database connection
Why Use Java?

1.Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
2.It is one of the most popular programming languages in the world
3.It has a large demand in the current job market
4.It is easy to learn and simple to use
5.It is open-source and free
6.It is secure, fast and powerful
7.It has huge community support (tens of millions of developers)
8.Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs
9.As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa

The above is the detailed content of Hello world in java. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn