what is java? java introduction

 

Learn Java

Java is a popular programming language.

Java is used to develop mobile apps, web apps, desktop apps, games and much more.

Examples in Each Chapter

Our "Try it Yourself" editor makes it easy to learn Java. You can edit Java code and view the result in your browser.

Examp

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

Click on the "Run example" button to see how it works.

We recommend reading this tutorial, in the sequence listed in the left menu.

Java is an object oriented language and some concepts may be new. Take breaks when needed, and go over the examples as many times as needed.


Java Exercises

Test Yourself With Exercises

Exercise:

Insert the missing part of the code below to output "Hello World".

public class MyClass {
  public static void main(String[] args) {
    ..("Hello World");
  }
}

Learn by Examples

Learn by examples! This tutorial supplements all explanations with clarifying examples.

See All Java Examples


My Learning

Track your progress with the free "My Learning" program here at W3Schools.

Log in to your account, and start earning points!

This is an optional feature. You can study at W3Schools without using My Learning

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:

  • Mobile applications (specially Android apps)
  • Desktop applications
  • Web applications
  • Web servers and application servers
  • Games
  • Database connection
  • And much, much more!

Why Use Java?

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

Get Started

When you are finished with this tutorial, you will be able to write basic Java programs and create real-life examples.

It is not necessary to have any prior programming experience.



Comments

Popular Posts