sarahy1836 sarahy1836
  • 30-07-2019
  • Computers and Technology
contestada

Can we declare top level classes as private or protected?

Respuesta :

aristeus aristeus
  • 02-08-2019

Answer and Explanation:

top level class can not be declare as private or protected. It is always public. If we declare a top level class as private then the compiler always complain that the  private is not allowed  and if we declare top level class as protected then compiler complain that modifier protection is not allowed here. so we can not declare top level class as private or protected

Answer Link

Otras preguntas

Which organization was founded in 1909 by W. E. B. Dubois to fight racial injustice? A. IWW B. AFL-CIO C. ACLU D. NAACP
the area on your screen where you can access the tab and menu options for word is called what?
Which of the following is the best version of the following sentence each one of the conference rooms have a computer display each of the conference rooms have
12 feet above sea level
Can I please get the answer for this question having trouble
Brianna bought a total of 8 notebooks and got 16 free pens. What's the unit rate.
How did conflicts in Europe spur exploration in north america?
a 96 ounce container of orange juice costs $4.80. at what price should a 128 ounce container be sold in order for the unit rate for both containers to be the sa
What is the book the old man and the sea about?
Relly Need HELP IN THIS PLZ TELL ME THE ANSWER !!!!!!!!!!!!!!