3 Questions
What is the simple assignment operator in Java?
=
Which operator is used for String concatenation in Java?
What does the unary minus operator do in Java?
Study Notes
Operators in Java
- The simple assignment operator in Java is =, which is used to assign a value to a variable.
- The operator used for String concatenation in Java is +, which is also known as the addition operator.
- The unary minus operator in Java is -, which is used to negate a value, meaning it reverses the sign of a number.
Test your knowledge on Java operators with this quiz. Learn about the simple assignment operator, arithmetic operators for addition, subtraction, multiplication, and division, as well as unary operators for increment, decrement, and logical complement.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free