Can we have multiple public classes in a java source file?


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

Post New Answer

More Core Java Interview Questions

What are the topics in core java?

0 Answers  


How do you relate a Interface to a Class? Tell me in Detail?

4 Answers  


What is the advantage of functional interface in java 8?

0 Answers  


why would you use a synchronized block vs. Synchronized method? : Java thread

0 Answers  


How to perform quicksort in java?

0 Answers  






What is the maximum size of hashmap in java?

0 Answers  


Mention a package that is used for linked list class in java.

0 Answers  


what is the swingutilities.invokelater(runnable) method for? : Java thread

0 Answers  


What is integer parseint?

0 Answers  


What is serialization in java?

0 Answers  


How big is a boolean?

0 Answers  


11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


Categories