Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 0

Explanation / 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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote