can we declare private class in java file?

Answer Posted / sankesh sinha

yes it occur when class is inner, top level class not be
private bcoz jvm will not able to compile.

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about static imports in java?

608


What does string intern() method do?

594


What are inner classes or non static nested classes in java?

715


State some advantages of java?

722


Difference between string, string builder, and string buffer?

542






Does list allow duplicates in java?

528


How we can generate random numbers in java?

614


What exactly is java?

521


Why should we use singleton pattern instead of static class?

468


How do you call a reference in java?

527


Which category the java thread do fall in?

579


What is an empty list in java?

537


How are this() and super() used with constructors in java programming?

580


What is a literal coding?

523


What is java util function?

523