Easy learning with example program codes

why abstract class is used in java?

Abstract class in java is used to implement 0 to 100% abstraction.

Note: Abstract class provide 0 to 100% abstraction because it may contain no abstract method or it may contain some of its methods as abstract methods or it may contain all its methods as abstract methods.

Java interview questions on abstract class

  • What is abstract class in java?
  • Why abstract class is used in java?
  • Can abstract class have constructors in java?
  • Can abstract class be final in java?
  • Can we declare local inner class as abstract?
  • What is difference between abstract class and interface in java?
    Please follow and like us:

  • Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki