What is the output of the following code segment? t = 10; if(t > 7) { System.out.print(AAA);

Question:

What is the output of the following code segment?
t = 10;
if(t > 7)
{
System.out.print("AAA");
System.out.print("BBB");
}
a. AAA
b. BBB
c. AAABBB
d. Nothing

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: