Java question 42 Could we call interface and abstract class abstract type becaus
ID: 3601863 • Letter: J
Question
Java question
42 Could we call interface and abstract class abstract type because both are dealing with f ANS (1): circle Can you instantiate an abstract to create a new class? ANS (1): circle ANS (2): circle Do you must use try & catch block code structure (construct) for catching data of exception or errors during processing? uture implementation of empty methods. Yes or No 43 Can you instantiate an interface to create a new class? ANS (1) ANS (2) Yes or No Yes or No 44 ANS: circle Yes or 0Explanation / Answer
42) Answer is No.
reason:--> Abstract class may contain abstract and non abstract methods while an interface contains only pure abstract methods. ( No implementation of methods are allowed in interface).
43) Ans(1) is No
Reason :--> We can not instantiate interface rather we can implements interface to define its all methods in the class which implements it.
Ans(2) --> We can not instantiate abstract class because abstract keyword doesn't let you instantiate the class but you can inherit the abstract class.
44) Answer is yes.
The code which is error-prone is must be encapsulated within a try block and each try block must be followed by catch block to handle an exception.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.