Skip to content
Sharp

Core Java · interview question

Why does parameters in a method matter in this design?

Multiple choiceEasychapter-1-curatedpremiumcore-javamethods
Choose one answer
Answer and explanation

Correct answer

B. To pass data into the method.

Why

Parameters allow you to pass data into a method, enabling it to perform operations based on the provided inputs.

Test yourself on Core Java

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

Start free test
All Core Java questions →