Is java Class Thread safe ???? How to make java Class Thread
safe ??
Answer / avinash pandey
NO Java class is not Thread Safe , for making thread safe to
Java class we have to use either Synchronized method or
Synchronized block...
| Is This Answer Correct ? | 28 Yes | 1 No |
Describe life cycle of thread?
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.
Can the main method be declared final?
Which is more secure: java or activex? : java security
How do I download and install eclipse on windows 10?
What's the difference between local, global and universal groups? : java security
How to implement Thread
What are all the documents have you involved in preparation of a Project as a Project Lead?
What is property file in java?
How to reverse the singly linked list(In Node data members are(int data,int pointerTONext))
What is resultsetmetadata in java?
Can you compile java into exe?