what is the Yield() method used in threads?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have try block without catch block?

588


What is the difference between hashmap and hashtable in java?

557


How does list work in java?

510


If system.exit (0); is written at the end of the try block, will the finally block still execute?

620


What is a instance variable in java?

552






What is variable and constant explain with example?

532


can I implement my own start() method? : Java thread

554


What is difference between local variable and global variable?

474


How is it possible for two string objects with identical values not to be equal under the == operator?

528


Why string is called as immutable?

524


Which class contains a method: cloneable or object?

542


Which is better arraylist or vector?

573


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

543


What is your platform’s default character encoding?

559


How is java hashmap implemented?

552