Why we are using by implementing the runnable interface rather than we have the run() method in thread class?
Hi, Is the question : Why we are going to Runnable interface when you have Thread class ?. Then every java basic developer should know that " Java does n...
If thread class contains run() method then why we are using run() method by implementing the runnable method in the thread?
Actually Runnable interface has the method run(). Every thread Object call the start() method to run the thread run() method. So Every run() method have their own implimentation.So we should write their own run() method thread code.
Your question is bit confusing :-|
What is the difference between synchronization() & static synchronization() in the thread?
How can we call a constructor through another constructor in the same class?
There is no way to invoke a constructor explicitly.Respective constructor is invoked only at the creation of object.For Ex: Hello h=new Hello(); // This will invoke default constructor if exists Hello...
Primitive data types
Why we are not using string as a primitive datatypes where we are using it as a class? Explain this?
Give me good reasons why should I choose you over others.
How do you handle difficult situations?
Describe a time when you had to listen to someone.
Aptitude Test Preparation Tips
How do you handle conflict?
How productive are you?
What are the career opportunities available for MCA Graduates?
Do you seek advice from others when you have a question?
How do you handle pressure and stress?
What do you think about our company?
Ask Interview Question?
Have Career Question?
Ask Only Career questions.