- Aweakly typed
- Bstrogly typed
- Cmoderate typed
- D None of these
Java is a strongly typed language. This means that the type of a variable is known at compile time and once a variable is declared with a certain type, it cannot be assigned a value of a different type without an explicit cast.
Java source code is compiled into Bytecode, which is an intermediate representation of the code that can be executed on any Java Virtual Machine (JVM). This allows Java to be platform-independent, as the same bytecode can run on different operating systems without modification.