If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / pravin

If you are making methods as abstract other restictions of
and difference is as it is like about modifiers[private, final, transient, volatile]

when condition is like your class extends other class [like JFrame or any such condition]then you cant use abstract class you must go to the interfaces.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is natural ordering in java?

523


What is the difference between jvm and jre? What is an interface?

550


How static variable work in java?

596


What is tostring () method?

540


Can we convert list to set in java?

510






What does int argc char * argv [] mean?

514


Describe the process as to how substring() methodology mechanisms in java.

554


What is stringreader?

525


What are the types of sockets in java?

538


What is bufferedwriter?

540


What does n mean?

517


What is a flag and how does it work?

503


Is null in java?

549


Is c better than java?

543


What is r * in math?

548