What is static and a non-static inner class?

Answer Posted / guest

Non Static inner classes have object instances that are
associated with the classes outer class.Static inner
classes have no object instances.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain public static void main(string args[]) in java.

715


What is a java string?

716


How many ways can you break a singleton class in java?

704


Does isempty check for null?

761


How to use arraylist in java netbeans?

725


Can we restart a thread already started in java?

805


Can two objects have same hashcode?

736


What is isa relationship?

751


How we can skip finally block of exception even if some exception occurs in the exception block in java?

721


Are static members inherited to sub classes?

870


What is object-oriented paradigm?

815


What are different types of constants?

715


Does string is thread-safe in java?

793


What is the use of private static?

766


How big is a boolean?

784