Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What operator would you use to add two numbers in Java?
Think of basic math addition.
What is the output of 5 != 5?
Remember what != signifies.
What symbol represents addition in Java?
Think about how you add numbers.
Is the following statement true or false? 5 >= 6.
Compare the two numbers.
Given two integers, a and b, write a method that returns the larger of the two using the ternary operator.
Recall how the ternary operator works.
If x = 7 and y = 5, what will the following line output? System.out.println((x > y) && (y < 6));.
Evaluate each condition carefully.
6 more questions in this section. Enroll free to practise them all.
Enroll free