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 thread life cycle in java?
What is an argument in java?
What are the differences between path and classpath variables?
What is string pool in java?
What are abstract methods in java?
What is the difference between iterator and enumeration ?
What does the “static” keyword mean? Can you override private or static method in java?
what is meant by encapsulation?
Difference between string s= new string (); and string s = "abv";?
What is the memory leak in java?
When is finally block not called?
What are the differences between this and super keyword?
What is byte data type?
When will we use them?