Question
Please answer quickly 1- An interface can extend another interface. Select one: True False 2- The following statement is used only to check for division
Please answer quickly
1-
An interface can extend another interface.
Select one:
True
False
2-
The following statement is used only to check for division by zero exception
catch(Exception e)
{
System.err.println(e.toString());
}
Select one:
True
False
3-
The following class declaration statement:
class Bus extend Vehicle implements Transportation { . . .} is valid in Java.
Select one:
True
False
4-
The following class declaration statement:
class implements Vehicle extends Transportation { . . .} is valid in Java.
Select one:
True
False
5-
Based on the below code:
Restaurant res=new Restaurant("Default Name");
Restaurant.Address add=res.new Address(new City());
The class city is:
Select one:
a.
An inner Class to Class Restaurant
b.
None of these
c.
A part-of Class Address
d.
An inner Class to Class Address
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