can we declare private class in java file?

Answer Posted / eonsimi

nested classes can be decalred as private and they can be accessed by its siblings and by their parent.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention some features of java?

534


What is preparedstatement in java?

553


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

565


What is java objectoutputstream?

537


What is public static?

491






Explain the difference between map and flatmap stream operation?

812


What is formatted output?

504


When is the finalize() called?

687


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1354


Which list does not allow duplicates in java?

504


What is a website container?

495


What is the difference between Array and Hash Table?

537


What is the static block?

578


What is the purpose of using the java bean?

566


What is the internal implementation of set in java?

494