when to for abstract class and when to go for interface
Answers were Sorted based on User's Feedback
Answer / sumit kumar
if your class design have some common and some different
behavior then go for - abstract class
if your class design have only different behavior then go
for interface.
Is This Answer Correct ? | 12 Yes | 2 No |
What is ternary operator in java?
Which sorting is used in arrays sort in java?
Can a set contain duplicates?
What if I write static public void instead of public static void in java?
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?
explain the collection in java
what is singlton class?where it is use in real time senario.
If system.exit (0); is written at the end of the try block, will the finally block still execute?
An inner class can actually be a subclass of the outer class? a. true b. false
worst case complexities of Quick sort and Merge sort.
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
What is string :: npos?