- A Will The Code Compile Successfully Justify Your Answer Interface Interface Name Int I 10 Void Display Class 1 (248.66 KiB) Viewed 14 times
a. Will the code compile successfully? Justify your answer. interface Interface Name { int i=10; void display(); } class
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
a. Will the code compile successfully? Justify your answer. interface Interface Name { int i=10; void display(); } class
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