Tag: inheritance
-
Inheritance in java
Definitions: A class that is derived from another class is called a subclass (also a derived class, extended class, or child class). The class from which the subclass is derived is called a superclass (also a base class or a parent class). Excepting Object, which has no superclass, every class has one and only one direct…
-
First mock interview
Questions from interviewer Default package in java? java.util package ——————————————————– If we create object where it will be stored? objects stored in heap memory variable and methods stored in stack memory —————————————————— Can we write public static void main(String[] args) in static public void main(String[] args) yes we can it will be run why we…