Can a class extend abstract class or interface? why

Answer Posted / mahesh

A class can extend an Abstract class but it can't extend an
interface.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a jit compiler?

912


What are the differences between forwarding () method and sendredirect() methods?

862


Is java same as core java?

845


What lambda means?

778


What are recursive functions?

829


Can you explain the usages of class.forname()?

874


Can you inherit a constructor java?

846


Why we use methods in java?

770


What modifiers are allowed for methods in an interface?

911


How do you reverse a list?

801


Name four container classes.

780


What is the difference between equals() and == in java?

736


When is the arraystoreexception thrown?

800


Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

832


How to check if a list is sorted in java?

814