GIAC GSSP-Java Question Answer
Given a code of a class named PrintString that prints a string.
1. public class PrintString{
2. public static void main(String args[]){
3. /*insert code here */
4. /* insert code here */
5. System.out.println(str);
6. }
7. }
Which of the following code fragments can be inserted in the class PrintString to print the output "4247"?
Each correct answer represents a complete solution. Choose all that apply.
GIAC GSSP-Java Summary
- Vendor: GIAC
- Product: GSSP-Java
- Update on: Jul 25, 2025
- Questions: 275