This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
(a) and (d) are correct.
(b) and (c) are incorrect.
Can someone explain why a and d are correct ?
Always believe in yourself
Joined: Jun 05, 2009
1. Create the PathMatcherExample.java source code and compile.
2. Run the code and verify the console output as: false
3. Substitute the code at STATEMENT A with: String str = "dir/f2";
4. Compile and run the code and verify the console output as: true
Please see the Java SE 7 API documents, for the import classes in the PathMatcherExample.java for details.