Given the following method
static void nPrint(String message, int n) {
while (n > 0) {
System.out.print(message);
n--;
}
}
What is the output of the call nPrint('a', 4)?
a. aaaaa
b. aaaa
c. aaa
d. invalid call
d Invalid call because char 'a' cannot be passed to string message
You might also like to view...
Which category of primitive functions has a function that returns an object’s height?
a. Point of view b. Proximity c. Size d. Spatial relation e. None of these
The server name portion of a URL is also called the ____.
A. web site B. protocol C. domain name D. extension
The expression sum = sum + 10 can be written as ____.
A. sum =+ 10 B. sum += 10 C. sum = sum ++ 10 D. sum ++ 10
Five different types of document properties like those shown in the accompanying figure exist..
Answer the following statement true (T) or false (F)