Go to w3c.91xjr.com
Reset Score
Close This Menu
Java Syntax
Exercise 1
Exercise 2
Go to Java Syntax Tutorial
Java Variables
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Go to Java Variables Tutorial
Java Data Types
Exercise 1
Exercise 2
Exercise 3
Go to Java Data Types Tutorial
Java Operators
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Go to Java Operators Tutorial
Java Strings
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Go to Java Strings Tutorial
Java Math
Exercise 1
Exercise 2
Exercise 3
Go to Java Math Tutorial
Java Booleans
Exercise 1
Exercise 2
Go to Java Booleans Tutorial
Java If...Else
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Go to Java If...Else Tutorial
Java Switch
Exercise 1
Exercise 2
Go to Java Switch Tutorial
Java Loops
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Go to Java Loops Tutorial
Java Arrays
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Go to Java Arrays Tutorial
Java Methods
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Go to Java Methods Tutorial
Java Classes/Objects
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Exercise 6
Exercise 7
Exercise 8
Go to Java Classes/Objects Tutorial
Java Exceptions
Exercise 1
Exercise 2
Go to Java Exceptions Tutorial
Menu
×
×
Correct!
Exercise:
Display the sum of
5 + 10
, using two variables:
x
and
y
.
@(3) @(1) = @(1); int y = 10; System.out.println(x + y);
int x = 5; int y = 10; System.out.println(x + y);
Not Correct
Click
here
to try again.
Correct!
Next ❯
Show Answer
Hide Answer
Submit Answer ❯
Show Answer
Hide Answer
×
Reset the Score?
Reset?
Cancel?