Skip to content

Tag Archives: Abstract Class and Interface

Inheritance is an important pillar of OOPs(Object Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields… Read More
Java does not support multiple inheritances but we can achieve the effect of multiple inheritances using interfaces. In interfaces, a class can implement more than… Read More
Predict the output of the following program. abstract class demo {     public int a;     demo()     {         a = 10;     }        abstract public void set();… Read More
Which of the following is true about interfaces in java. 1) An interface can contain following type of members. ....public, static, final fields (i.e., constants)… Read More
Which of the following is FALSE about abstract classes in Java (A) If we derive an abstract class and do not implement all the abstract… Read More

Start Your Coding Journey Now!