- Collection Framework in JavaCollections Class in JavaList Interface in Java with ExamplesArrayList in JavaVector Class in JavaLinkedList in JavaQueue Interface In JavaPriorityQueue in JavaSet in JavaHashSet in JavaLinkedHashSet in JavaMap in the JavaHashMap in JavaHashtable in JavaLinkedHashMap in Java
Java Introduction
What is Java?
It is a computer programming language. Java allows programmers to write computer instructions using English commands instead of writing them in digital code. It is known as a high-level language because it can be easily read and written by humans.
Like English, Java has a set of rules that determine how instructions are written. These rules are known as their syntax. After a program is written, high-level instructions are translated into numerical digits, which the computer can understand and execute.
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 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 a 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
Java Example
Let's have a quick look at Java programming example.
E3Docs.java
class E3Docs {
public static void main(String args[]) {
System.out.println("Hello E3Docs");
}
}