wahts is mean by thread?
Answers were Sorted based on User's Feedback
Answer / madhuri reddy
thread is a light weight process.it divide the hole
programm into small groups.it is based on the kernal
| Is This Answer Correct ? | 33 Yes | 3 No |
Answer / kranti rajan singh
1.thread is an independent path of execution within ur java
program.that means thread can share the same memory space.
2. the sequence of code executed for each task defines a
separate path of execution is called thread.
| Is This Answer Correct ? | 34 Yes | 10 No |
Answer / zoheb
thread is the sub task in a program,thread is usually used
for purpose of serving the multiple client
| Is This Answer Correct ? | 14 Yes | 4 No |
Answer / mukthiyar
Thread is a light weight process.
Thread is a single sequential execution flow of control.
Each thread has its own Stack memory.
Different Threads share the same memory(Heap Memory) and it
use some algorithm for implementing time slice like(Round
Robin).were as different Process take different memory space.
| Is This Answer Correct ? | 13 Yes | 6 No |
Answer / venkat reddy
A thread is a single sequence stream within in a process
| Is This Answer Correct ? | 9 Yes | 5 No |
Answer / kiran
Thread is sequenctial flow of a control with in a program
| Is This Answer Correct ? | 13 Yes | 12 No |
how to call a method in different package?
What are the uses of synchronized keyword?
What will happen if static modifier is removed from the signature of the main method?
What does java final mean?
How can we use primitive data types as objects?
What do you mean by buffering?
When is an object in the mean to garbage collection?
What is core java called?
What is the argument type of main() method?
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
How much is a java license?
What do you meant by active and passive objects?