if am have 100 threads(for ex:T1,T2---T100) how we give
priority to these threads and how the system excute these
threads
Answers were Sorted based on User's Feedback
Answer / anand kumar
we will allocate the priority using threadobject,setPriority
(int n) method....then according to the no given jvm will
exicute the threads
Is This Answer Correct ? | 3 Yes | 0 No |
What does the “static” keyword mean? Can you override private or static method in java?
What is a parameter used for?
Can you call one constructor from another if a class has multiple constructors?
What is encapsulation? Elaborate with example?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Difference between stack and queue?
What is the difference between normal report & matrix report?
whats is the use of final,in which situation final can be used in the application?
What is the purpose of the file class in java programming?
What is casting in java programming?
What are the elements of java?
How two different class threads communicate with each other?. send example code.