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

Is vector thread safe in java?

0 Answers  


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;

17 Answers   Honeywell,


What is nested top-level class?

0 Answers  


What is the use of static class?

0 Answers  


Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?

5 Answers   Ericsson,


. Explain Java String Pool.

1 Answers  


In how many ways we can create threads in java?

0 Answers  


What is a loop java?

0 Answers  


What is classpath?

0 Answers  


What are the performance implications of interfaces over abstract classes?

1 Answers  


Explain about doubly linked list

0 Answers   Aditi Placement Service,


Categories