tag

home / developersection / tag

Java Inner Class
java 11-Dec-2015
Java Inner Class

In java Inner class or nested class is declared inside the class or interface. We use inner class because it increases more readable & maintainable of code.

Generate random numbers in Java
java 16-Nov-2015
Generate random numbers in Java

There are two principal means of generating random (really pseudo-random) numbers: one is using the Random class and the other is using the Math.random method.

Encapsulation
java 13-Nov-2015
Encapsulation

The whole idea behind encapsulation is to hide the implementation details from users. If a data member is private it means it can only be accessed within the same class. No outside class can access private data member (variable) of other class.