PYQPulse
HomeMocksPracticePYQsUpdatesDashboard
PYQPulse

Timing-accurate mock tests and PYQs for SSC, Banking and Railway exams — so the real paper feels like a revision.

Exams

  • SSC exams
  • Banking exams
  • Railway exams
  • All exams

Practice

  • Practice questions
  • Mock test series
  • Sectional tests
  • Year-wise PYQs
  • Performance analytics

Company

  • About us
  • Help Centre
  • Pricing
  • Sign in

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • hello@testwala.co.in
  • Telegram
  • +91 62816 87760

Practice interface modeled on the official exam pattern — not the official examination. PYQPulse is not affiliated with the Staff Selection Commission, IBPS, SBI, RBI, NABARD, SEBI or Indian Railways.

© 2026 PYQPulse. All rights reserved.

Built for aspirants, by aspirants.

HomeMocksPracticeStats
  1. Home
  2. ›
  3. PYQs
  4. ›
  5. RRB Junior Engineer / DMS / CMA
  6. ›
  7. 2019
  8. ›
  9. Q3577

RRB Junior Engineer / DMS / CMA 2019 · Question 3577 of 3719

Which of the following is/are the rules to declare variables in Java?

  1. AJava keywords cannot be used as variable names
  2. BAll of the optionsCorrect
  3. CVariable names are case-sensitive
  4. DThe first character must be a letter

Answer: B. All of the options

Explanation

The variable is the basic unit of storage in a Java program. A variable is defined by the combination of an identifier, a type, and an optional initializer. Variable names cannot be keyword, it is case- sensitive and the first character must be a letter. In Java, all variables must be declared before they can be used. The basic form of a variable declaration is: type identifier [ = value ][, identifier [= value ] …]; Examples: int a, b; int a = 10, b = 20, c = 30; int a, b = 20, c; Confusion point In Java, variable name can also start with underscore character “_”, or a dollar sign “$”. Best Possible answer is chosen.

Source: RRB JE 2019 (CBT 2) (IT) Previous Year Paper (30 Aug 2019) — prepp.in solved-paper PDF (answer key with explanations) · reliable-secondary

← Q3576View full paper (3719 questions)Q3578 →

Practice the full RRB Junior Engineer / DMS / CMA 2019 paper

Timed test with all 3719 questions, just like the real exam.

Start test