Photo
A program is a list of instructions or blocks of instructions. If you are stuck in understanding the main concept of Control structure in Java then here is the right way to understand it easily.
#nested switch case in java#java static initializer block#how to achieve encapsulation in java#method overloading in java
0 notes
Video
tumblr
To create an exact copy of object and without effecting the original object, we use the cloning in java. The original object and cloned object have same data but both will not affect each other.
0 notes
Text
Finalize Method in Java
The finalize method in java is used to perform cleanup activities. Java doesn’t provide destructor unlike C++, it destroys the unreferenced variables, objects. This method is part of Garbage collector.
0 notes
Text
How To Achieve Encapsulation in Java
The most common question in java is how to achieve encapsulation in java, here is the answer: We have to make our data members as private and method can be public. So that no one can directly change the data member.
0 notes
Video
tumblr
Like method overloading, we can do constructor overloading in java. We can overload the constructors, but each constructor should be different parameter lists. We can perform different task based on requirement in each constructor.
0 notes
Link
Java goal is here to clear all your basic concept about the java basic and advanced. This is the overview of what are the things we cover in a static keyword.
0 notes
Link
1 note
·
View note