Explain the difference between extends thread vs implements runnable in java?
No Answer is Posted For this Question
Be the First to Post Answer
What are the three parts of a lambda expression?
Why are parameters used in functions?
why java is not supporting multiple inheritence?
suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible
What is garbage collection in Java, and how can it be used ?
32 Answers Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
Can you instantiate the math class?
what is the main differene between synchronize() method and Synchronize{}block?
What are different types of multitasking?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Difference between this() and super() ?
What is difference between this and super keyword?