InterviewSolution
Saved Bookmarks
| 1. |
ALL 8. What will be the result of compiling and running the following Java program?What will be the result of compiling and running the following Java program?5public class TipTop{static final Integer il = 1;final Integer 12 = 2;Integer i3 = 3;67public static void main(String[] args){final Integer 14 = 4;Integer i5 = 5;00class Inner{final Integer i6 = 6;Integer i7 = 7;9Inner(){System.out.print(i6 + 17);10} |
|
Answer» Main.java:1: ERROR: class TIPTOP is public, should be declared in a file NAMED TipTop.javapublic class TipTop |
|