can we declare private class in java file?

Answer Posted / prasanthi

yes,but it is declare to inner class,not to outter class.if we are declaring "private" to outter class nothing can be accessaed from that outter class to inner class.

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist zero based?

547


What is the maximum size of array in java?

510


What is the list interface in java programming?

578


Why call by value prevents parameter value change?

577


What are inbuilt functions in java?

557






What interface is extended by awt event listeners?

587


How do you classify Dialog Box?

638


How can you set an applet’s height and width as a percentage?

505


Why does it take so much time to access an applet having swing components the first time?

1387


Is java a software?

511


What is difference between wait and notify in java?

535


Is this valid in java ? Can we instantiate interface in java?

543


What is a method declaration?

503


Can we have static methods in an interface?

549


What are scalar data types?

517