1.
Given three resources bundles with these values set for menu1: (the default resource bundle in US English.) English US Resource Bundle Menu1 = small French Resource Bundle Menu1 = petit Chinese Resource Bundle Menu1 = And given the code fragment: Locale.setDefault(new Locale("es", "ES")); // Set default to Spanish and Spain Locale loc1 = Locale.getDefault(); ResourceBundle message = ResourceBundle.getBundle("MessageBundle", loc1); System.out.println(message.getString("menu1")); What is the result?
2.
Which is a factory method from the java.text.NumberFormat class?
3.
Given the code format: SimpleDateFormat sdf; Which code statements will display the full text month name?
4.
Select four examples that initialize a NumberFormat reference using a factory.
5.
Given the Greetings.properties file, containing: What is the result?
6.
Give: Which is correct?
7.
Given the incomplete pseudo-code for a fork/join framework application: And given the missing methods: Process, submit, and splitInHalf Which three insertions properly complete the pseudo-code?
8.
Given: Which two classes correctly override the getDepth method?
9.
To provide meaningful output for: System.out.print( new Item ()): A method with which signature should be added to the Item class?
10.
Given the code fragment: Assume the method printNums is passed a valid array containing data. Why is this method not producing output on the console?