Can we have multiple classes in a single file?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Why to use nested classes in java? (Or) what is the purpose of nested class in java?

0 Answers  


How TreeMap sorts the objects inside it?? suppose if have include one employee object and one car object. On what basis it will sort?

5 Answers  


What do you mean by composition in java?

0 Answers  


Explain importance of finally block in java?

0 Answers  


What is the difference between private & public & friendly classes?

0 Answers  






Is java a pure object oriented language?

0 Answers  


Is multiple inheritance allowed in Java? Why ?

7 Answers  


Difference between prefix and postfix forms of the ++operator?

3 Answers  


how come we know the object is no more used in the class?

2 Answers   Accenture,


How many types of modifiers are there?

1 Answers   Infosys,


How do you achieve polymorphism in java?

0 Answers  


What data type is a string?

0 Answers  


Categories