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
wht is mean by dirty read?
What is the method in java?
How to do encapsulation in java?
Why are global variables used?
What is method reference?
Can we override final method?
What is blank final variable?
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.
What are the four versions of java?
How many types of classes are there in java?
What do you mean by JVM?
What is method overloading in java ?