What happens if constructor is private?
No Answer is Posted For this Question
Be the First to Post Answer
What is arraylist e in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is an arraylist in java?
Which containers may have a MenuBar?
What is java argument list?
What error occurs if a try-catch-finally statement sequence does not have a catch clause?
What is meant by main method?
What is meant by object oriented programming – oop?
what is mean by overriding in which situation we wil use?
5 Answers Atlas Systems, CSC, DCPL,
What is the gregoriancalendar class in java programming?
What will happen if a thrown exception is not handled?
0 Answers ABB, Akamai Technologies, Infogain,
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.