If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / ravi
if all the methods are abstract in abstract class,then the
only difference left is,,,,
interface can have static and final variables with public
and abstract access modifier only ,,,while abstract class
can have any type of variable with any type of access
modifiers
| Is This Answer Correct ? | 30 Yes | 3 No |
Post New Answer View All Answers
What is the purpose of static methods and variables?
What's the difference between comparison done by equals method and == operator?
What is the meaning of I ++ in java?
What is the synchronized method modifier?
What is ctrl m character?
What is lazy initialization in java?
What are the advantages of java inner classes?
What is java thread dump, how can we get java thread dump of a program?
Which is illegal identifier in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is the set interface in java programming?
What does jre stand for?
Which class cannot be a subclass in java?
How do you sort a string 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.