Explain the difference between runnable and callable interface in java?


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

Post New Answer

More Core Java Interview Questions

public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 Answers  


How many threads can java run?

0 Answers  


Can a method be overloaded based on different return type but same argument type?

0 Answers  


Explain the difference between map and flatmap stream operation?

0 Answers  


There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation

1 Answers   ABC, KPIT,


What is the relationship between class and object?

0 Answers  


What is printwriter in java?

0 Answers  


Write a java program to check if a number is prime or not?

0 Answers  


Can we have multiple classes in a single file?

0 Answers  


why use interface? if interface declear a method implement in class. why direct implement method in class

1 Answers   HCL,


How java is platform independent?

41 Answers   College School Exams Tests, Infosys, TCS,


what is the difference between Object Based Language and Object Oriented Language?

0 Answers   Aspire,


Categories