- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the Thread class in Java?
The java.lang.Thread class is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently. Following are the important points about Thread −
- Every thread has a priority. Threads with higher priority are executed in preference to threads with lower priority.
- Each thread may or may not also be marked as a daemon.
There are two ways to create a new thread of execution.
- One is to declare a class to be a subclass of Thread.
- Another way to create a thread is to declare a class that implements the Runnable interface.
- Related Articles
- The join() method of Thread Class in Java
- isAlive() method of Thread Class in Java programming
- What is the class "class" in Java?
- What is a daemon thread in Java?
- How to make a class thread-safe in Java?
- Difference Between Thread Class and Runnable Interface in Java
- Properties of the Thread Class
- Methods of the Thread Class
- How to use isAlive() method of Thread class in Java?
- What are the methods and properties of the Thread class in C#?
- How to create a thread by using anonymous class in Java?
- What are the ways in which a thread is created in Java?
- Is Java matcher thread safe in Java?
- What is the super class of every class in Java?
- What is the root class in Java?

Advertisements