Answer Posted / harika.thota001@gmail.com
Inner Class in java so called nested class is nothing but a class that is being defined inside another class. Inner classes are beneficial in two scenarios i.e. access control and naming control. Although these benefits can be acquired using java packages.
anonymous class is an inner class that does not have a name at all. And whose instance is being created at the time of its creation.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between filereader and bufferedreader?
What are peerless components?
What is java beans?
Can we declare array without size in java?
Can a class be defined inside an interface?
Does java allow overriding static methods ?
What is an object’s lock and which object’s have locks?
How do weakhashmap works?
how come we know the object is no more used in the class?
How to overcome the exception object reference not set to an instance of object?
If a variable is declared as private, where may the variable be accessed?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What are thread priorities and importance of thread priorities in java?
What happens when main () method is declared as private?
How can an exception be thrown manually by a programmer?