Inheritance
I/O Programming
Packages
Polymorphism
Types of Inheritance
100

This keyword is used to inherit a class in Java.

extends

100

Standard input stream in Java is this.

100

A package is used to group these in Java.

Classes and Interfaces

100

Polymorphism means

Many forms

100

This type of inheritance is not directly supported in Java using classes

Multiple Inheritance

200

The class that inherits from it is called  as

Parent class/ Base class/ Super class

200

Standard output stream in Java is this.

System.out

200

This package contains utility classes like ArrayList

java.util;

200

This type of polymorphism occurs at compile time

Method Overloading

200

Java supports hybrid inheritance using this concept

Interface

300

A class that inherits from another class is called this.

Child / Derived / Sub

300

Streams based on data type are classified as these two.

Byte streams and Character streams

300

This package is used for GUI components

java.awt

300

This type of polymorphism occurs at runtime.

Method Overriding

300

This keyword is used to implement an interface

implements

400

This type of inheritance involves one parent and one child class.

Single Inheritance

400

Streams based on operation are classified as these

Input streams and Output streams

400

This keyword is used to include a package

import

400

Method overloading depends on this (parameters / return type).

Parameters

400

A class can implement multiple interfaces. True or False?

True

500

This type of inheritance involves a chain of inheritance (A → B → C).

Multi level Inheritance

500

This class is commonly used to read input from the keyboard

Scanner

500

This keyword is used to create a package

package

500

Which keyword is used to access parent class method or constructor

super

500

A Java program reads data using Scanner, stores it in a class that extends another class, and overrides a method to display results. Identify at least three concepts used.

  • Inheritance
  • Method Overriding (Runtime Polymorphism)
  • I/O Streams (Scanner input)
M
e
n
u