CoreJavaProgramming

Chapter 1- Java Fundamental

 * Features of Java


 * 1) Simple :- Java is Easy to Learn.
 * 2) Platform Independent :- After compilation of Java file class file has been generated. This class file contains byte code. This byte code is independent to operating system.
 * 3) Object Oriented :- Java support all the features of Object Oriented programming like Encapsulation, Abstraction ,Inheritance and Polymorphism.
 * 4) Distributed :- Java support client server network programming.
 * 5) Robust :- Java support Exception Handling and Strong Memory management by garbage collector.
 * 6) Secure :- Java does not support pointer as well byte code can not be easily decrypted. Java program run in sandbox.
 * 7) Portable :- Java program give same output after running on different machine as well.
 * 8) Architecture Neutral :- Java data types size is same on different system configuration.

a] Encapsulation :- Binding the data member (variable) and member function (method) into a single unit is know as Encapsulation. It is use to bind same functionality classes in single class. It is describe as Accessing the private properties through public environment. Example- Fan speed can be control through regulator. Getter and Setter are the example of encapsulation.
 * OOPs Concept

b] Abstraction :- Hiding the implementation and showing only the functionality is know as Abstraction. Example: In ATM we received the correct amount given for withdraw is automatically. We are unaware about the process.

c] Inheritance :- Deriving the property from existing class is known as Inheritance. Basically inheritance is use for re-usability. Example- Java inherit the future from Object Oriented Programming Language.

d] Polymorphism :- One object is behaving in different way on different input is know as Polymorphism. Example :- A person in college is a Teacher and at home he is son or father.