Introduction to java


Java is a programming language.It is used to develop mobile apps, web apps, desktop apps, games and much more.

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
  7. And much, much more!

Why Use Java?

  1. Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
  2. It is one of the most popular programming language in the world
  3. It is easy to learn and simple to use
  4. It is open-source and free
  5. It is secure, fast and powerful
  6. It has a huge community support (tens of millions of developers)

Java Example:

public class MyClass {
  public static void main(String[] args) {
    System.out.println("CScientists.com");
  }
}

Where:-

MyClass: The name of the class, in every class there is at most one public class, and it must be the same as the file name.
main: Is one type of  the methods in java, it is to run the program.

No comments:

Post a Comment