Programming - Strings

You Are Here :: Home > JAVA > Strings - General Questions

 
7.

Strings are more commonly concatenated with the __________ operator                        


A. + B. "-"
C. both a and b D. all the above




8.

The + operator is widely used in _________ statements.                        


A. println B. printf
C. print D. scanf




9.

The Java programming language does not permit _________ to span lines in source files, so you must use the + concatenation operator at the end of each line in a multi-line string.                        


A. strings B. literal strings
C. both a and b D. all the above




10.

the use of the __________ methods to print output with formatted numbers.                        


A. scanf() and format() B. println() and format()
C. printf() and format() D. print() and format()




11.

Using String's __________ method allows you to create a formatted string that you can reuse, as opposed to a one-time print statement.                        


A. dynamic format() B. static format()
C. both a and b D. all the above




12.

The String class has an equivalent class method, format(), that returns a _______ rather than a PrintStream object.                        


A. string B. String object
C. string class D. class




« prev

1

2

3

4

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on