Java is a general-purpose, object-oriented programming language(consists of objects and classes) that made for developers to write once run anywhere that is compiled Java code can run on all platforms that support Java. Java is fast, secure, and reliable. It is widely used for developing Java applications in laptops, data centers, game consoles, scientific supercomputers, cell phones, etc.
Object − Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors – wagging the tail, barking, eating. An object is an instance of a class.
Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.
Why Java is loved by people?
- It makes the development much faster, easier and fluent.
- It is platform-independent . It means that the code compiled in one system can be run on another system without any changes.
- It has powerful development tools like Eclipse and Net-Beans that have played a vital role in making Java one of the best programming languages.