diff between abstract methods and interfaces with programing
(code) example?
Answer Posted / naresh p
an abstract class contains the concrete methods as well
abstract methods. It may instance variables and static
final variables
an interface contains only abstract methods. all the
variables are by default static and final.
an abstract class contains constructor where as an
interface does not have constructors...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what do you mean by classloader in java?
What 4 doubled?
Explain covariant method overriding in java.
What is the difference between and ?
What does .equals do in java?
What occurs when an object is constructed?
What are different types of inner classes ?
What is Java Package and which package is imported by default?
What are packages in java?
What exactly is a .class file?
How to remove the trailing spaces from a string?
What do you understand by final value?
How to Sort Strings which are given in List and display in ascending order without using java api.
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
What is the final class?