Question: _______ access specifier is used with main method. Select one: a.public b.private c.default d.None of these State if it is True or False: User-defined exceptions

_______ access specifier is used with main method.

Select one:

a.public

b.private

c.default

d.None of these

State if it is True or False: User-defined exceptions are possible.

Select one:

a.TRUE

b.FALSE

c.May be

d.None of these

_____ is used to declare a package in java.

Select one:

a.pkg

b.pkge

c.package

d.None of these

_______ is the most restricted access specifier.

Select one:

a.public

b.private

c.default

d.None of these

State if it is True or False: Throw and Throws are used for different functions.

Select one:

a.TRUE

b.FALSE

c.May be

d.None of these

"Package statement must be the first line in a java program." This statement is:

Select one:

a.TRUE

b.FALSE

c.May be True

d.None of these

____is an error which occurs during run-time.

Select one:

a.Compile-time error

b.Exception

c.Link Error

d.None of these

Interface and abstract class have ______ in common.

Select one:

a.Abstract methods

b.Non-abstract methods

c.Both A and B

d.None of these

Name of the package must be the same as that of the _____ in java.

Select one:

a.folder

b.all parent folders separated by dots

c.all parent packages separated by dots

d.All of these

Multiple inheritance is possible with ________ in java.

Select one:

a.Class

b.Interface

c.Abstract class

d.All of these

All Interface variables are ___ by default in Java.

Select one:

a.public

b.abstract

c.both a &B

d.None of these

An interface in java is like a 100%________.

Select one:

a.Class

b.Abstract class

c.final class

d.None of these

State True or False: final and finally both are used in exception handling mechanism.

Select one:

a.TRUE

b.FALSE

c.May be True

d.None of these

Exception class exist in ___________.

Select one:

a.java.util

b.java.lang

c.java.net

d.All of these

A Java interface is not considered a class.

Select one:

a.TRUE

b.FALSE

c.May be

d.Can't say

What happen in case of multiple catch blocks?

Select one:

a.Either super or subclass can be caught first.

b.The superclass exception cannot caught first.

c.The superclass exception must be caught first.

d.None of these

Which keyword specifies the exception thrown by a method?

Select one:

a.throw

b.throws

c.finally

d.final

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!