Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 - When finally block gets executed ? Select One a . Always when try block get executed, no matter exception occured or not.b .
When finally block gets executed Select One a Always when try block get executed, no matter exception occured or not.b Always when a method get executed, no matter exception occured or not.c Always when a try block get executed, if exception do not occur.d Only when exception occurs in try block code Interfaces are useful for Select One a used to create objects of the classb. Visible to the packagec. Declaring methods that one or more classes are expected to implement.d used when a member variable of a class has to be shared between all the instances of the class What is the output of this program?class output public static void mainString args String c "Hello i love java"; boolean var; var cstartsWithhello; System.out.printlnvar; Select One a trueb. falsec. d What is the output of this program?class exceptionhandling public static void mainString args try int a b; b ; a b; System.out.printA; catchArithmeticException e System.out.printB; finally System.out.printC; Select One a Ab Bc ACd. BC
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started