Code
public class Test {
private static String msg
= "HCL ";
static{
public void run(){
msg = "Technologies ";
}
});
t.start();
}
public static void main
(String[] args
){
}}
Copyright GeekInterview.com
a) Compiles and prints HCL
b) Compiles and prints Technologies
c) Compiles and prints HCL Technologies
d) Output can be HCL or Technologies
Predict the output of the given code:
a) Compiles and prints HCL
b) Compiles and prints Technologies
c) Compiles and prints HCL Technologies
d) Output can be HCL or Technologies
Questions by lalithakasiraj
Related Answered Questions
Related Open Questions