If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
No Answer is Posted For this Question
Be the First to Post Answer
what is different between static and non static methods ,using example
Difference between keyword and identifier.
How to do a true java ping from windows?
Can we have a abstract class withought any method? What is a purspose of this?
Is the empty set a singleton?
What do you mean by stream pipelining in java 8?
What is a reflection package?
What are inner and anonymous class?
What is diffrance between FINALIZE() & FINALLY ?
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.
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is local class in java?