What is multithreading ???? How to stop multithrading in
java????
Answer / jyothsna ivaturi
An independent sequential path of execution with in a program is called as THREAD.
MULTITHREADING is the proess of execution of two or more threads concurrently at a time.
This process can be stopped in java with the help of synchronization.
SYNCHRONIZATION can be defined as "a shared resource can be used by only a single thread at a time"
Is This Answer Correct ? | 13 Yes | 0 No |
What is a boolean flag in java?
What is difference between char array and string?
How can an object be unreferenced?
string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable?
What are concepts of OOPS and how are they implemented in Java?
How do you create a reference in java?
What is the public field modifier?
Which is better stringbuffer or stringbuilder?
What state is a thread in when it is executing?
What is stack example?
How do you bind variables?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }