Difference between abstract class and Interfaces in Java

Answer Posted / narasimha raju

An abstract classes can have concrete methods and declares
abstract method which method can implement in different
ways. whereas in interface all are abstract methods.
in abstract class we can declare any type of variable
but in interface all are final variables.

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are two of your strengths that you will bring to our QA/testing team?

1857


In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?

1751


How to connect to ms word wit VB ojective is to prepare s/w to generate question paper , selects questions randomly from the ms access , database

2225


can we allocate memory for interface? if no then why?

1665


Which design patterns have you used?

1753


What is SOLID Principle in Programming Language?

906


why not instantiating servet using new operator?

1714


how do you generate source code for the automatic generation for receipt number

4230


Explain polymorphism. Provide an example.

800


write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.

1389


How to call dll API sub routine in VB Form.

2118


WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.

2044


What sysoption determines where the macro facility searches a specific catalog for complied macro?

1896


It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?

1748


Find out the roles which gives access to all tables in SAP? Thanks in advance.

1778