Font size
WorksheetsJava Quiz1
Total questions: 10
Worksheet time: 4mins
What is an exception?
Compile time error
Logical Error
Runtime error
try block is used to
monitor exceptions
throws exception
catches exception
handles exception
catch block is used to
throw an exception
create an exception
handles an exception
stops execution
To implement multiple inheritance in Java we use
Package
Abstract class
Interface
Abstract method
Abstract class can have
Abstract methods
Methods with code implementation
Used to create objects
Used to create subclasses
Keyword used to create package is
(a)
import is used to
create interface
create package
Access package
To create a class
Hybrid inheritance and multiple inheritance is possible in Java using the concept
Package
Interface
Super
Access specifiers
How many primitive data types are there in Java?
5
6
7
8
Java is
Robust
Multithreaded
Interpreted
Platform dependent
