Answer the following statements true (T) or false (F)
1. Efficiency is lost in importing the entire package instead of importing the classes you use.
2. Every Java program automatically imports the java.util package.
3. The new line character is represented as ‘\n’.
4. The method printf is used the same way as the method println but has the added feature that allows
you to add formatting instructions.
5. The printf method can be used to output multiple formatted values.
1. False
2. False
3. True
4. False
5. True
You might also like to view...
If this code fragment were executed in an otherwise correct and complete program, what would the output be? Explain.
``` int a = 3, b = 2, c = 5 if (a > b) a = 4; if ( b > c) a = 5; else a = 6; cout << a < endl; a) 3 b) 4 c) 5 d) 6 e) None of the above, the cout statement belongs to the else and so is skipped. ```
Which method returns an array of the enum’s constants?
a. values. b. getValues. c. constants. d. getConstants.
__________ is a fast, accurate, inexpensive, high-capacity, nonvolatile extension of main memory.
a. RAM b. ROM c. D-RAM d. Secondary storage
When a process ________ a signal, the operating system responds to the signal using the default signal handler; however, when a process ________ a signal of a particular type, the operating system does not deliver signals of that type and does not respond to the signal.
a) masks, catches b) ignores, masks c) catches, masks d) masks, ignores