Question 1

Java is a ______ language. This means that you must be explicit about what type of data you are working with.

  1. AWeakly typed
  2. BStrongly typed
  3. CDynamically typed
  4. DLoosely typed
Show answerHide answer

Correct answer: (B) Strongly typed

Explanation

Java is strongly (and statically) typed: every variable must be declared with a type, and the compiler does not allow values of incompatible types to be mixed without an explicit cast.

From DSSSB TGT Computer Science Practice Set 1

This is question 1 of DSSSB TGT Computer Science Practice Set 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.