Quiz
How many interfaces can a class implement according to the Class format?
As a java source file gets compiled and references get resolved all the import information gets lost. How would you get it back?
Assume you have sources A.java and B.java and you compile both. Then you change the value of theString in B.java to “test 2” and compile only B.java.What would be the output of A.main() ? What if B’s field theString is set to be final? Try to logically explain what happens in both cases.
System.out.println(B.theString);
public static void main( String argv[]) {
public static String theString =" test 1 ";