Programming MCQS - QUESTION DETAILS

How is an abstract class different from an interface in Java?
A. Abstract class can have constructors
B. Interface can have constructors
C. Abstract class can have abstract methods
D. Interface can have non-abstract methods

Abstract classes can have constructors, while interfaces cannot.

Similar Questions

How is a single-line comment written in C?






What does the 'printf' function do in C?






In C, how do you declare a constant?






What is the purpose of the 'break' statement in a loop in Java?






What is the role of 'calloc' function in C?






What is the purpose of the 'finalize' method in Java?






What is the purpose of the 'break' statement in a switch statement?






How do you declare a constant in an interface in Java?






How do you create a thread in Java?






What is the purpose of the 'super()' constructor in Java?