87.6k views
7 votes
Select all the correct answers. Which statement will print the output 10 + 20=30

a. System.out.println("10 + 20 =30" );
b. System.out.println(10 + 20 =30);
c. System.out.println(10 + 20 =""+ (10+20));
d. System.out.println("10 + 20" =10+20);
e. System.out.println(10 + 20 ="" +10 +20);

2 Answers

11 votes

Answer:

a

Step-by-step explanation:

User PurpleFoxy
by
5.2k points
12 votes

Answer:

a

Step-by-step explanation:

b will print out a boolean, true, i think

c gives an error?? i think

d seems weird

e is weird too

anyway, b,c,d,e all have bad syntax

User Samuel Davidson
by
5.1k points