what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / prabir kumar

1) Classes can implements any no. of interfaces, but
extends only one abstract class.

2) interfaces can be best the choice when your program need
some global variables.

Is This Answer Correct ?    24 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us something about different types of casting?

521


What are data types in programming?

553


What a static class can contains?

700


What is a nested class?

598


What are the new features in java 8?

572






What is function declaration?

532


What is an array length?

500


What is the static block?

585


what is meant by abstract class?

654


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

685


How many threads does a core java have?

512


Do you know how to reverse string in java?

584


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

577


What do you mean by of string::valueof expression in java 8?

543


Which non-unicode letter characters may be used as the first character of an identifier?

597