What are the differences between abstract class and interface?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Which data type is class in java?

0 Answers  


What is communist flag?

0 Answers  


hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class

1 Answers  


can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}

4 Answers  


Can a method inside a interface be declared as final?

0 Answers  






How do I start learning java?

0 Answers  


What is double checked locking in singleton?

0 Answers  


can u give one sinario when you use Abstract Class and When you use Interface.

5 Answers   ITC Infotech,


What is the use of java?

0 Answers  


What is bufferedreader in java?

0 Answers  


What is the static variable?

0 Answers  


What is class level lock ?

0 Answers  


Categories