A 25 b 2 c error d something else big idea naming

Info icon This preview shows pages 5–13. Sign up to view the full content.

A. 2.5 B. 2 C. Error D. Something else
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Big Idea: Naming Data with Variables public class FirstDemo { public static void main (String[] args) { int myNumber = 4 - 2; System.out.println(myNumber); System.out.println(myNumber+6); } } What is printed by the third line in this program? A. 8 B. myNumber6 C.2+6 D.This line causes an error
Image of page 6
Looking ahead: Variables, declaration and assignment int myNumber; myNumber = 6+3;
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.