JAVA Programming :: Objects and Classes - Discussion
Home > JAVA Programming > Objects and Classes > MCQs Questions Discussion
22 / 30
Choose the correct option.
Consider the following code. What is the Output:
public class StaticTest {
static {
System.out.println("Planet");
}
public static void main(String argv[]) {
}
static {
System.out.print("Welcome");
}
}
APlanet
BPlanet Welcome
CWelcome
DNone
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!