Java Multithreading Questions and Answers
1. Which of these class is used to make a thread?
Loading...
2. Which of these interface is implemented by Thread class?
Loading...
3. Which function of pre defined class Thread is used to check weather current thread being checked is still running?
Loading...
4. What is the output of this program?
class multithreaded_programing {
public static void main(String args[]) {
Thread t = Thread.currentThread();
t.setName("New Thread");
System.out.println(t);
}
}
Loading...
5. What is the priority of the thread in output of this program?
class multithreaded_programing {
public static void main(String args[]) {
Thread t = Thread.currentThread();
t.setName("New Thread");
System.out.println(t.getName());
}
}
Loading...
6. What is the name of the thread in output of this program?
class multithreaded_programing {
public static void main(String args[]) {
Thread t = Thread.currentThread();
System.out.println(t.getPriority());
}
}
Loading...
7. Which methods are utilized to control the access to an object in multi threaded programming
Loading...
8. Which of the following is used to force each thread to reconcile its working copy of a variable with the master copy in main memory?
Loading...
9. What is multithreaded programming?
Loading...
10. Which of these are types of multitasking?
Loading...
Are these questions helpful for you?
Related Quizzes
- Introduction To Java
- Java Network Programming
- Java File Input Output
- Java Socket Programming
- Java Data Types
- Java Operators
- Java Strings
- Java Arrays
- Java Package And Interface
- java.lang Package
- Java Swings
- Java Applets
- Java Exception Handling
- JSP And Servlet
- Struts And Hibernate
- Java Session
- JDBC
- Java Classes And Methods
- Java Generics
- Java Multithreading
Comments: (Your feedback is valuable to us)
Nagalakshmi 2 years ago Reply
Very useful to us