The values of foo and bar are:

Consider the Java segment:
String line1 = new String("c = 1 + 2 + 3") ;
StringTokenizer tok = new StringTokenizer(line1, "+=");

String foo = tok.nextToken();
String bar = tok.nextToken()

a. foo is “c ”, bar is “ = ”.
b. foo is “c”, bar is “ ”.
c. foo is “ = ”, bar is “ + ”.
d. foo is “c ”, bar is “ 1 ”.


d. foo is “c ”, bar is “ 1 ”.

Computer Science & Information Technology

You might also like to view...

?Click the _________ tab to change the volume of the video from high to medium or low or mute it. A. Video Tools Format B. Video Playback C. Animations D. Transitions

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Different versions of Linux are known as distros

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following components on a laptop will typically require reinstallation of the OS?

A. Optical drive B. RAM modules C. Hard disk D. CMOS battery

Computer Science & Information Technology

Match each shortcut key with its corresponding tool or command

A. Zoom tool B. Hide panels C. Direct Selection tool D. Changes document view to 100% E. Selection tool F. Pen tool G. Type tool H. Access Hand tool

Computer Science & Information Technology