What is a top level class in java?



What is a top level class in java?..

Answer / Ravi Kant Ojha

A top-level or standalone class in Java is a class that is not nested inside another class. Such classes are defined directly within the source file and can be directly accessed from outside of the file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Who found java?

1 Answers  


Is array synchronized in java?

1 Answers  


Scenario: There are 1 to 100 numbers. Each number should be keep in the each column like from A column to Z column ie 1 to 26. From 27 to 52 should be in 2nd row in the excel sheet. This has to be continue till 100. How do you write Java program and what are various methods.

4 Answers   Cap Gemini,


could you run the java program without main method?

6 Answers  


Can we override static methods in java?

1 Answers  


Where are local variables stored?

1 Answers  


What is JIT ?

4 Answers   Satyam,


How do you check if two given string are anagrams?

1 Answers  


Is java good for beginners?

1 Answers  


Features of JAVA ? In which version of java synchronizedXXX() methods are included in Collections class.

1 Answers   NIIT,


why pointer is not used in java?

3 Answers  


What is the alternate of 'Inheritance' ?

4 Answers   CybAge, HCL,


Categories