What is the difference between Abstract Class and Interface
Answer Posted / guest
An abstract class can have instance methods that implement a
default behavior. An Interface can only declare constants
and instance methods, but cannot implement default behavior
and all methods are implicitly abstract. An interface has
all public members and no implementation. An abstract class
is a class which may have the usual flavors of class members
(private, protected, etc.), but has some abstract methods.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why we used vector class?
Which list does not allow duplicates in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Can you call a method on a null object?
What is meant by string is immutable?
What is flush buffer?
When can an object reference be cast to an interface reference in java programming?
Why do we need strings in java?
What are the advantages of autoboxing?
Is null in java?
What is files manifesting?
What is the concatenation operator in java?
Can we declare the main method of our class as private?
How do you find the independent variable?
What is a default method?