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?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What are exception handling keywords in java?

0 Answers  


How do I run java on windows?

0 Answers  


What is replaceall in java?

0 Answers  


What is the Dictionary class?

1 Answers  


What is the ResourceBundle?

2 Answers   Elementus Technologies,






In the below example, what will be the output?

0 Answers  


Can a class be private in java?

0 Answers  


Give reasons supporting that string is immutable.

0 Answers  


What do you mean by flow of struts?

0 Answers   Amdocs,


In what ways you can handle exception ?

3 Answers  


How big is a boolean?

0 Answers  


How do you execute a thread in java?

0 Answers  


Categories