Java
provides an approach known as ________ as a convenient alternative to
implementmultipleinheritance:
Inheritance
Packages
Interface
None
of these
The
syntax to define an interface is:
Interface
interface.name
Interface
interface-name
interface interface_name
none
of these
The
interface is visible only to the members of the :
Different
package
Main
package
Same package
None
of these
Theinterface accessible in any other code,
it can be declared as:
Public
Private
Both
a & b
None
of these
The
variables in an interface are by default :
Static
Final
Both a & b
None
of these
The
method compute() does not have a body part and its declaration ends with
a:
Colon
Semicolon
Dot
None
of these
________
can be used as a super class whose members and properties can be inherited
by other classes.
Inheritance
Interface
Packages
None
of these
One or
more classes can implement the interface by using the keyword_______ in
the class definition:
Extends
implements
interface
none
of these
The
methods in an interface are defined in the implementing class, the _______
keyword must be used:
Public
Private
Protected
All
of these
If a class
that implements the interface does not provide complete implementation of
the methods declared in the interface, then it is necessary for the class
to be declared as an:
Abstract
Interface
Import
None
of these
An
interface can inherits another interface by using _______ keyword in the
same way as a class inherits from another class:
implements
interface
extends
abstract
The
names of the super interfaces are separated by :
,
.
_
;
_______
can also inherit from more than one interface:
inheritance
interface
both
a & b
none
of these
_______
is a java application that helps in implementing multiple inheritance:
inheritance
interface
packages
constructors
__________
refers to a construct that comprises several objects and forms the
building blocks of java programs:
Hi,Sometimes archived websites contain a lot of good content, but it’s not accessible through the archival interface in Web Design Cochin because the search function doesn’t work offline.Thanks.....................
Hi,Sometimes archived websites contain a lot of good content, but it’s not accessible through the archival interface in Web Design Cochin because the search function doesn’t work offline.Thanks.....................
ReplyDelete