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.
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.
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.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.