Computer Science, asked by brainlymember56, 1 year ago

In java how can we create the object reference thread for main() method​

Answers

Answered by lastbenchstudent
1

do call this inside main method

Thread main = Thread.currentThread();

thats it. now pass on or use it like any other thread


brainlymember56: but is must be Static
brainlymember56: Thread variable i think must be static
Similar questions