Object and Class in Java
Object and Class in Java
Object and Class in Java
1. Object in Java
2. Class in Java
4. Method in Java
records of student
6. Annonymous Object
Method in Java
In java, a method is like function i.e. used to expose
behavior of an object.
Advantage of Method
o Code Reusability
o Code Optimization
new keyword in Java
The new keyword is used to allocate memory at run
time. All objects get memory in Heap memory area.