GIAC
GSSP-JAVA · Question #21
GSSP-JAVA Question #21: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #21. The question stem and answer options stay visible for context.
Question
What will be the output of the following program? class Stringtest { public static void main(String args[]) { String s= "test"; s.concat("paper"); System.out.println(s); } }
Options
- AIt will display test.
- BIt will display testpaper.
- CIt will generate a compile-time error.
- DIt will display paper.
Unlock GSSP-JAVA to see the answer
You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.