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

What is command line argument in java?

599


How can we pass argument to a function by reference instead of pass by value?

580


What is t type java?

620


What is bean? Where it can be used?

595


What is navigable map in java?

514






what is singleton in java?

594


What should I import for arraylist in java?

503


What is a constructor overloading in java?

515


What is the purpose of methodology?

633


What is memory leak and how does java handle it?

513


What is are packages?

577


What does arrays sort do in java?

532


Where import statement is used in a java program?

606


Explain the hierarchy of java exception classes?

586


What are implicit objects in java?

543