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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!