JAVA || High Level Programming language || Compiled into byte-code || Platform independence
JAVA on other hand OOPS concept. This article is to groom on JAVA with real world example. Thou been a tester, does not have good hands on programming language, but in the current scenario when Automation Testing comes in picture, QA's inclined toward programming language.
Question arise, why only JAVA as their are many more programming languages in market C+, C#, Python, Ruby and others, but salient features of JAVA makes a most demanding and powerful programming language. Syntax is almost similar to C# but the concept on which it works is called OOPS.
JAVA is an OOPS Programming language while Java Script is an OOPscripting language
Java runs on VMs or Browser where as JavaScript only on a browser
CLASS: Collections of objects, includes variables and method. A class is a blueprint for any functional entity which defines its properties and functions.
Variables are attributes which defines the state of a class and methods are the place where logic has written.
OBJECT: Logical and Physical entity. It is an instance of class
ENCAPSULATION: Concept that binds together the data and functions that manipulate the data. Or HIDING DATA or HIDING PROPERTIES AND METHOD
ABSTRACTION: Simple things to represent complexity
INHERITANCE: Object acquires all the properties and behaviors of parent object.
POLYMORPHISM: Ability to process objects differently depending on their data type or class