Difference between abstract class and Interfaces in Java

Answer Posted / megha mokawat

Abstract class can have non-final variable aslo
but in interface variable are final by- default

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as 1 step.)

573


how do i create my own exception class which will restrict IO exception?

2274


How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there

1543


Suppose server object is not loaded into the memory, and the client request for it , what will happen?

2139


Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?

1440






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

1609


Is class is a abstract datatype in java?

1422


I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?

5628


Find out the list of roles which gives access to GUI activities? thanks in advance

1702


what is class module in vb6? what it's use? with example..

1920


3. What is the difference between testing and Quality Assurance?

1456


could u please also write an example of a code that involves instances from an abstract class just as u did for interfaces because u said it could also work which i really doubt. thanks

1604


can we use commit,rollback in triggers and how?

1475


Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..

1623


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.

1150