Java is a high-level object-oriented, platform-independent programming language. Java was developed by James Gosling and provided by Sun Microsystems in 1995.
Features of Java:
Platform independent: We can run a java program and it will run on any platform like Windows, Mac or Linux.
Robust: Java comes with features like memory management, better security without the use of pointers and automatic garbage collection which makes it robust.
Object-oriented: Java is completely an object-oriented programming language packed with features like abstraction, encapsulation, inheritance, and polymorphism.
Portable: We can take the Java program's bytecode and run in on any machine and the output will be the same.
High Performance: With the use of multithreading we can write java programs which will be faster
Secure: Java does not use pointers which makes it more secure than other programming languages.
What is a language?
Language is a way of communication between two entities.
What is a program?
A program is a set of instructions written to perform some specific task.
Types of programming languages:
Low-level language: The languages which are easily understood by machines are low-level languages.
High-level language: The languages which are easily understood by humans are called as high-level languages.
What is an Interpreter?
The interpreter verifies the instructions line-by-line which means it will only move to the second line if there is no error in the first line.
What is a Compiler?
The compiler will verify all the instructions at the same time. The information about all the incorrect statements will be displayed at the same time. If there is an error in a Java program then it will not generate a bytecode.