Which of the following statement(s) is/are correct regarding java programming?…

PYQ DSSSB 2021

Which of the following statement(s) is/are correct regarding java programming?

I. Place a semicolon immediately after a method header

II. Define a method outside the braces of a class definition

  1. A.

    Only I

  2. B.

    Only II

  3. C.

    Both I and II

  4. D.

    Neither I nor II

Attempted by 1051 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…