Which two are valid initialization statements? A. Map<String, String> m = new SortedMap<String, String>(); B. Collection m = new TreeMap<Object, Object>(); C. HashMap<Object, Object> m = new SortedMap<Object, Object>(); D. SortedMap<Object, Object> m = new TreeMap<Object, Object> (); E. Hashtable…

Given: What is the result? A. riding riding tolting B. riding riding cantering C. tolting cantering tolting D. tolting cantering cantering E. Compilation fails. F. An exception is thrown at runtime.

Given the directory structure that contains three directories: company, Salesdat, and Finance: Company – Salesdat * Target.dat – Finance * Salary.dat * Annual.dat And the code fragment: If Company is the current directory, what is the result? A. Prints only…

Given: StringBuffer b = new StringBuffer("3"); System.out.print(5+4+b+2+1); What is the result? A. 54321 B. 9321 C. 5433 D. 933 E. Output is Similar to: 9java.lang.StringBuffer@100490121. F. Compilation fails.