In this video, we will learn about Thread States & Thread Priority In Java In Hindi.
A thread in Java at any point in time exists in any one of the following states.
A thread lies only in one of the shown states at any instant:
New
Runnable
Blocked
Waiting
Timed Waiting
Terminated
Priorities in threads is a concept where each thread is having a priority which is in layman’s language
one can say every object is having priority here which is represented by numbers ranging from 1 to 10.
The default priority is set to 5 as excepted.
Minimum priority is set to 1.
Maximum priority is set to 10.
______________________________________________
Want to learn Coding? or want to learn Computer Languages like C, C++, Java, Python, HTML, PHP, etc. then make sure you Subscribe to @codingseekho
#codingseekho #coding #java #javaclass #javacode #javaprogramming #javatutorial #javaforbeginners #threadstates #threadpriority