
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:
- 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 language in the world
- It is easy to learn and simple to use
- It is open-source and free
- It is secure, fast and powerful
- 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");
}
}
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