What is thread?

Answers were Sorted based on User's Feedback



What is thread?..

Answer / l.gururajan

Thread is a path of the execution in a program.

Is This Answer Correct ?    6 Yes 0 No

What is thread?..

Answer / naveen

A thread is a part of program that follows a separate path of execution.
A thread is also called a light weight process as they share common resources

Is This Answer Correct ?    4 Yes 0 No

What is thread?..

Answer / avijit

Thread is a light weight process.

Is This Answer Correct ?    3 Yes 0 No

What is thread?..

Answer / lavanya

Thread is a sub-process.

Is This Answer Correct ?    3 Yes 0 No

What is thread?..

Answer / dsr

Thread is a independent sequential of program.

Is This Answer Correct ?    0 Yes 0 No

What is thread?..

Answer / javamasque

Threads are lightweight process which lives inside process. These are independently running programs which have concurrent path of execution. Each thread has its own 1. Java stack 2. Program counter and 3. Native stack but have common heap space. Multiple threads with in same process share same variables and objects. They allocates objects from same heap and even they can share same instructions (execution code) at particular time. As a result above common access they can easily share information to each other.

Every program has at least one thread i.e. main thread. JVM creates main thread which calls main method to execute whole program. The main thread is non-daemon thread. Any thread created by main method is non-daemon thread by default.

JVM has daemon threads for garbage collection, object finalization and other housekeeping jobs.

Is This Answer Correct ?    0 Yes 0 No

What is thread?..

Answer / kalva raju

thread is a small program

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

What is a stringbuffer?

0 Answers  


public class AboutStrings{ public static void main(String args[]){ String s1="hello"; String s2="hel"; String s3="lo"; String s4=s2+s3; //to know the hash codes of s1,s4. System.out.println(s1.hashCode()); System.out.println(s4.hashCode()); // these two s1 and s4 are having same hashcodes. if(s1==s4){ System.out.println("s1 and s4 are same."); }else System.out.println("s1 and s4 are not same."); } } Somebody told me that, == operator compares references of the objects. In the above example even though s1 and s4 are refering to same object(having same hash codes), it is printing s1 and s4 are not same. Can anybody explain in detail why it is behaving like this? Thanks in Advance RavuriVinod

4 Answers   TCS,


How 'java' got its name and what it stands for?

11 Answers   Wipro,


Can we declare main () method as non static?

0 Answers  


Which class is the immediate superclass of the Container class?

1 Answers  






What is the preferred size of a component?

3 Answers   ITSA,


What is function overriding and overloading in java?

0 Answers  


what is d difference between deep cloning and shallow cloning in core java?

3 Answers   Satyam,


Why static functions are used?

0 Answers  


Is null a value?

0 Answers  


What is the different types of functions?

0 Answers  


How do I remove a character from a string in java?

0 Answers  


Categories