Before learning JSON, it's better to learn JavaScript language. JavaScript is a lightweight scripting language used to create network-based applications. It is very easy to implement as it is integrated with Java and HTML programming languages. JavaScript is an open and cross-platform programming language that involves both functional programming and object-oriented features.
JavaScript can integrate with Java and HTML, but, it is not an extension to Java. Simply put, JavaScript is a language that can be understood by the browser and defines the behavior of web pages. The functionality of web pages mainly depends on 3 things.
- HTML : Shows elements on the web pages.
- CSS : Adds styles to the web-pages.
- JavaScript : Gives dynamic functionality to the web pages.
While learning any languages it's better to learn
OOPS
concepts.
An inheritance is nothing but acquiring the properties from the previous class.
Hiding the class
implementation details
is known as abstraction. Abstraction can be achieved by defining class behavior in an interface and implementing it in a class. Instead of creating a class reference, referring to the class object through an interface reference is known as abstraction. The advantage of abstraction is if the implementation of the class is changed, that will not affect the usage of the class, hence one can provide enhancement modification easily.
polymorphism is the OOPS concept that means
one can perform a single action by various ways, actually poly means many and morph means forms, these both words are Greek words. There are two types of polymorphism, one is compile time polymorphism and the second one is a runtime polymorphism. By using method overloading and method overriding developer can perform polymorphism.
Encapsulation is a process of
protecting the members of the class
. Java has completely encapsulated body which protects a member by using access specifiers. The best example is Java Bean Class. Developing a Java class with the private fields and providing access to the private fields using getters and setter method known as a Java Bean Class.