We’d love to hear any feedback or comment from you!

###### Engineering · Computer Science
Question details

1)Given the following segment of code:

int enigma = 12;

int enigma2 = enigma * 2;

System.out.println("The value of enigma is: "+enigma);

What will be displayed to the screen by the last line of code?

2)Which statement is true about variable names in Java?

 They can contain an underscore symbol (“_”).
 They must make sense as a word.
 They can contain the percent sign (%).
 They can contain spaces.

3)Given the following declarations:

 String theBard = "Now is the winter of our discontent";

What is the value of the expression:

theBard.charAt(8)