I want to re-reach and use an object once it has been garbage collected. How it's possible?
No Answer is Posted For this Question
Be the First to Post Answer
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 flag up means?
What is thread safe singleton?
Is integer a class?
strings in java are objects.why?
Can we write a class without main method in java?
Is ++ operator is thread safe in java?
What is use of set in java?
What is final modifier?
What is the difference between an array and an array list?
What is bitwise complement?
What are the two basic ways in which classes that can be run as threads may be defined?