what is the Yield() method used in threads?
Answers were Sorted based on User's Feedback
Answer / pankaj malik
Causes the currently executing thread object to temporarily
pause and allow other threads to execute
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chikku
This static method is essentially used to notify the system that the current thread is willing to "give up the CPU" for a while. The general idea is that:
The thread scheduler will select a different thread to run instead of the current one.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manikandan [ gtec,vellore ]
after invoking yeild() method it enters into a ready state.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sasirekha
yield method will allow other thread to execute.
| Is This Answer Correct ? | 2 Yes | 2 No |
To what value is a variable of the Boolean type automatically initialized?
What is the main function in java?
What does the @override annotation do?
What is the different types of functions?
How will you initialize an Applet?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
What is numel matlab?
What is an example of a constant variable?
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
Explain the difference between association, aggregation and inheritance relationships.
Which containers use a FlowLayout as their default layout?