a. Will the code compile successfully? Justify your answer. interface Interface Name { int i=10; void display(); } class
-
answerhappygod
- Site Admin
- Posts: 899604
- 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!