Which access specifier can be used with Class ?
Javasearch.buggybread.com
Share

Search Interview Questions


 3356 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

 Q1. Which access specifier can be used with Class ?Core Java
Anonymous
Ans. For top level class we can only use "public" and "default". We can use private with inner class.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   class   access specifier   inner classes      basic        frequent


Related Questions

  What are points to consider in terms of access modifier when we are overriding any method?
  Difference between Public, Private, Default and Protected ?
  Can we reduce the visibility of the inherited or overridden method ?
  Can we instantiate the object of derived class if parent constructor is protected ?
  Which access specifiers can be used with top level class ? a. public or default b. public or private c. public or protected d. protected or default
  Can we reduce the visibility of the overridden method ?
  What will happen if we make the constructor private ?
  Can we declare an abstract method private ?
  Name few access and non access Class Modifiers ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this