JAVA was developed by Sun Microsystems Inc in 1991, later acquired by Oracle Corporation. It was developed by James Gosling and Patrick Naughton. It is a simple programming language. Writing, compiling, and debugging a program is easy in java. It helps to create modular programs and reusable code.
Editions of Java
Each edition of Java has different capabilities. There are three editions :
- Java Standard Editions (JSE): It is used to create programs for a desktop computer.
- Java Enterprise Edition (JEE): It is used to create large programs that run on the server and manages heavy traffic and complex transactions.
- Java Micro Edition (JME): It is used to develop applications for small devices such as set-top boxes, phone, and appliances.
Main Features of JAVA
Compiler(javac) converts source code (.java file) to the byte code(.class file). As mentioned above, JVM executes the bytecode produced by the compiler. This byte code can run on any platform such as Windows, Linux, Mac OS, etc. This means a program that is compiled on windows can run on Linux and vice-versa. Each operating system has a different JVM, however, the output they produce after execution of bytecode is the same across all operating systems. That is why we call java a platform-independent language.
OOPs (Object Oriented Programming System)
Object-oriented programming is a way of solving complex problems by breaking them into a small sub-problem. An object is a real-world entity. It is easier to develop a program by using an object. In OOPs, we create programs using class and object in a structured manner.
Class: A class is a template or blueprint or prototype that defines data members and methods of an object. An object is the instance of the class. We can define a class by using the class keyword.
Object: An object is a real-world entity that can be identified distinctly. For example, a desk, a circle can be considered objects. An object has a unique behavior, identity, and state. Data fields with their current values represent the state of an object (also known as its properties or attributes).
Abstraction: An abstraction is a method of hiding irrelevant information from the user. For example, the driver only knows how to drive a car; there is no need to know how does the car run. We can make a class abstract by using the keyword abstract. In this programming course , we use abstract class and interface to achieve abstraction.
Encapsulation: An encapsulation is the process of binding data and functions into a single unit. A class is an example of encapsulation.
Inheritance: Inheritance is the mechanism in which one class acquires all the features of another class. We can achieve inheritance by using the extends keyword. It facilitates the reusability of the code.
Polymorphism: Polymorphism is the ability to appear in many forms. In other words, single action in different ways. For example, a boy in the classroom behaves like a student, in the house behaves like a son. There are two types of polymorphism: run-time polymorphism and compile-time polymorphism.
Java Programming for Software Developers Beginner to Expert
If you want to learn our Java course 22-HR+ click on the enroll now button given bellow :