a. Will the code compile successfully? Justify your answer. interface Interface Name { int i=10; void display(); } class
Posted: Tue May 24, 2022 8:09 am
a. Will the code compile successfully? Justify your answer. interface Interface Name { int i=10; void display(); } class ClassName implements InterfaceName 1 void display() { } class Demo { System.out.println(" The value of i is: " +i): public static void main(String[] args) { ClassName obj-new ClassName(): obj.display(); 15MI