Saturday, October 27, 2012

Facts about inner classes in Java

An inner class is which is declared as static is called a Nested class.
Inner classes have access to private members if the outer class.
You can have inner classes inside inner classes. They will have access to the outermost class members.

Inner classed solve the problem of multiple implementation inheritance in java.

Following is valid Java code

public interface Hello {

class helloWorld {

public static void main(Syring [] args){

System.out.println("HELLO WORLD");




No comments:

Idea for patent

Return machine Id  and use this for routing future requests . This will give cache locality. The ui/ mobile app should use this I'd f...