What will be the output of the following code snippet? double STATIC = 2.5; System.out.println(STATIC);

Choose the correct answer

Explanation

The code declares a double variable named STATIC and assigns it the value 2.5. Since STATIC is not a reserved keyword in Java, the code compiles and runs successfully, printing 2.5 to the console.

What will be the output of the following code snippe… — Java concepts and its programming | PakQuizHub