Answer Posted / 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 |
Post New Answer View All Answers
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is main string [] args?
What is stack example?
What is native code?
What is string builder?
Discuss about garbage collector in Java.
What is data object example?
What are the types of relation?
What is %02d?
What is a numeric format?
When should I use singleton pattern?
What are the new features in java 8? Explain
What are the important features of Java 11 release?
What is functional interface in javatpoint?
What are predicates in java 8?