Output of Print and Println Methods
Develop code to utilize string literals and determine the result of using string literals.
What is printed as a result of executing the following code segment?
System.out.print(“Hello”);
System.out.print(“World”);
System.out.println(“!”);
System.out.println(“Java”);
A
HelloWorld!
Java
B
Hello
World
!
Java
C
Hello World!
Java
D
HelloWorld!Java
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | lsj08030922 | 1 | 1 | 0m 06s | 94 |
| #2 | kaisuki | 1 | 2 | 0m 00s | 90 |
| #3 | sailajavadlamani33 | 1 | 3 | 0m 00s | 80 |
| #4 | richa.tuli | 0 | 1 | 2m 33s | -163 |
APFIVE