What is a line separator in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is exception propagation?
What is the purpose of declaring a variable as final?
what is the difference between static class and singleton class? can we create static class?
2 Answers L&T, Octazen, Vamsi Labs,
What is ternary operator? Give an example.
What does microservices mean?
How can you make a class serializable in java?
What is Runtime class and its purpose?
What is the memory leak in java?
Java run-time system generates What class of exceptions?
What is the use of optional ?
What 5 doubled?
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.