The String method substring returns ________.

a. a char
b. a String
c. void
d. a char[]


b. a String

Computer Science & Information Technology

You might also like to view...

The output indicates that fred is logged on, while we were checking to see whether ed was logged on. Modify ison to correct this problem.

The program ison from this chapter has a shortcoming as shown in the following example: $ ison ed fred tty03 Sep 4 14:53

Computer Science & Information Technology

Which of these is the most secure password?

A. marquisdesod B. Marqu1sDeS0d C. MarquisDeSod D. Marqu1s_DeS0d

Computer Science & Information Technology

Which of the following is a set of APIs for incorporating Google functionality into your apps?

a. Google Android Services b. Google App Services c. Google Play Services. d. None of the above.

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1) Methods are called by writing the name of the method followed by a left brace followed by the argument (or a comma-separated list of arguments) of the method followed by a right brace. 2) strings can be concatenated only with the method Concat. 3) Method arguments may not be expressions. 4) To access the class’s non-static members, a static method must use a reference to an object of the class.

Computer Science & Information Technology