InterviewSolution
Saved Bookmarks
| 1. |
What will be the output of the below code? |
|
Answer» class SCALER{ static INT i; static { System.out.println(“a”); i = 100; }}public class StaticBlock{ static { System.out.println(“b”); } public static void MAIN(String[] ARGS) { System.out.println(“c”); System.out.println(Scaler.i); }} Output: bca100Reason: |
|