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
Explain creating threads by extending thread class ?
What is the maximum size of byte array in java?
What are the different ways to handle exceptions?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
Why do we override tostring method in java?
How many arguments can be passed to main ()?
What is use of arraylist in java?
How are this() and super() used with constructors in java programming?
How to create an interface?
What are passing parameters?
What are annotations in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
How will you print number in reverse (descending) order in BST.
Write a program to reverse array in place?
Why local variables are stored in stack?