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 is difference between String buffer and String builder?

5 Answers   Benchmark,


what r callable statement and give their proper use

2 Answers  


What is local class in java?

0 Answers  


What is a hashmap used for?

0 Answers  


Can we use String with switch case?

0 Answers  






How 'java' got its name and what it stands for?

11 Answers   Wipro,


Difference between error and exception

3 Answers   Nous, TCS,


Why Java is a platform independent language?

6 Answers   Wipro, Zensar,


Describe the process as to how substring() methodology mechanisms in java.

0 Answers  


What are meta-annotations?

0 Answers   Cyient,


Can a abstract class be defined without any abstract methods?

0 Answers  


Explain the use of sublass in a java program?

0 Answers  


Categories