Multiple choice technology programming languages

Java is a strongly-typed language

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java is strongly typed because every variable must be declared with a type, and the compiler performs strict type checking to ensure that values assigned to variables are compatible with their declared types, preventing many runtime errors.

AI explanation

To answer this question, you need to understand the concept of strongly-typed languages.

Option A) True - This option is correct. Java is indeed a strongly-typed language. In strongly-typed languages like Java, each variable must be declared with its data type, and the type of a variable cannot be changed after it is declared. This strict type checking ensures that variables are used in a consistent and predictable manner.

Option B) False - This option is incorrect. Java is a strongly-typed language, as explained above.

The correct answer is A) True. Java is a strongly-typed language because it requires explicit declaration of variable types and enforces strict type checking.