Can we create a class inside a class in java?



Can we create a class inside a class in java?..

Answer / Pooja Singh

No, Java does not support nested classes within another class. However, it supports inner classes and static nested classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain different ways of passing arguments to sub-routine?

1 Answers  


How many characters is 16 bytes?

1 Answers  


what is the use of abstract class?

3 Answers   Amdocs, Atos Origin, Invictus,


What is a null point?

1 Answers  


How to store image in arraylist in java?

1 Answers  


What is access modifiers?

1 Answers   Cap Gemini,


What is the default value stored in Local Variables?

5 Answers  


how to call One constructor from another;

10 Answers   Innodata Isogen,


What do you understand by Header linked List?

1 Answers   Genpact,


Can we declare the main method of our class as private?

1 Answers  


Is binary a low level language?

1 Answers  


what is the difference between cd & dvd ?

30 Answers   Lovely Professional University, Satyam, Sibylsys,


Categories