Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
class Thread02
{
public static void main(String zee[])
{
Thread t = Thread.currentThread(); // currentThread - is a static method of class 'Thread'
System.out.println(t); // gives: [ThreadName, Priority(0-10), ThreadGroup]
System.out.println(t.getName()); // to get particularly [ThreadName]
System.out.println(t.getPriority());
t.setPriority(7); // manually set priority to a thread(min:0, max:10)
System.out.println(t.getName());
System.out.println(t.getPriority());
}
}