Subscribe to Zinmag Tribune
Subscribe to Zinmag Tribune
Subscribe to Zinmag Tribune by mail

Viva Questions for Java Lab

6:04 AM Posted by techgeek
Multithreading Section

What is thread?

Thread is a part of process, also called as light weight process


What is multithreading?


Simultaneous execution of threads is called multithreading


What is a process?

Program under execution is called process


How to create thread?

By creating instance of Thread class or implementing Runnable interface


Can you name any methods of Thread class?

currentThread( ), setName( ), getName( ), setPriority( ), getPriority( ), join( ), isAlive( )


What is join( ) method of Thread?


Combines two or more threads running process and wait till their execution is completed



What are the states in Thread Life Cycle?

Ready, running, block, wait, dead
You can leave a response, or trackback from your own site.

0 Response to "Viva Questions for Java Lab"

Post a Comment

featured-video