Can you instantiate an abstract to create a new class Do you
Can you instantiate an abstract to create a new class? Do you must use try & catch block code structure (construct) for catching data of exception or errors during processing? What O/P is produced by the following code?
Solution
43) You can never instantiate an interface in java.
You can never instantiate an abstract class in java.
In both the above cases , an anonymous class can be created and instantiated. But direct instantiation is not possible.
44) No.
By default, the JVM can also handle exceptions be itself.
45) Try block entered and activated
Exception:Time is exceeded!
After try block
