When we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify

Answer Posted / arjun

In interface we can writer interface keyword and abstract we can write abstract class
In interface we can write constructor but abstract no
In interface we can forcely implement all methods but abstract no
In interface all variables public static final we can not change but abstract not

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by garbage collection used in java?

575


Can an object be null?

549


What is the purpose of assert keyword used in jdk1.4.x?

565


What is the history of java?

546


Explain the difference between string, stringbuffer and stringbuilder in java?

559






Is break statement can be used as labels in java?

506


What will be the default values of all the elements of an array defined as an instance variable?

554


What is time complexity java?

536


What is return type in java?

630


What is anagram in java?

520


State some advantages of java?

714


what state does a thread enter when it terminates its processing? : Java thread

599


Differentiate between vector and array list.

636


Is it safe to install java on my computer?

541


How do you find the maximum number from an array without comparing and sorting?

641