Skip to content
Sharp

Core Java · interview question

Which operator is used to increase a product's quantity by one?

Multiple choiceEasychapter-1-curatedpremiumcore-javaoperators-and-expressions
Choose one answer
Answer and explanation

Correct answer

A. ++

Why

The '++' operator is used to increment the value of a variable by one. Focus on why the correct option matches the concept and why the distractors are weaker in this scenario.

Test yourself on Core Java

A free test with instant, explained results. No account needed.

Start free test
All Core Java questions →