when to use abstract class and when to use interface?
Answer Posted / brijendra kumar soni(xavient)
1-By using Interface we can achieve the Multiple
inheritence while by using abstract class we can not
achieve.
2-Abstract Class extended by a class only while Interface
implmented by a class and extended to one or more
interfaces.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
how to run ecllipse with jettyserver for windows environment using batch file
What is final keyword in java?
What is the unit of plancks constant?
What is a super method?
What are the characteristics of Final,Finally and Finalize keywords.
Add a value x to array from index l to r where 0 <= l <= r <= n-1
What are the procedures?
Say any two properties in beans?
How many types of keywords are there?
Does windows 10 need java?
explain the concept of virtual method invocation in polymorphism in detail?
What are the parts of methodology?
What is the disadvantage of synchronization?
What is identifier give example?