Can we call the Thread.sleep in Synchyronozed block?
Answer Posted / ravikiran
Yes we can call,And should be enclosed between try catch
blocks beacause Interupted exception may be thrown.
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is sortedset in java?
Explain about automatic type conversion in java?
Why do we use variables?
Write a factorial program using recursion in java?
When we serialize an object does the serialization mechanism saves its references too?
Give few difference between constructor and method?
Can we execute a program without main?
What are the basic interfaces of java collections framework?
What are the rules for naming an array?
What is a two-pass assembler?
Explain polymorphism citing an example.
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What do you understand by the term polymorphism?
What is intern method in java?
What is the size of arraylist in java?