1.

interface calculate{   void cal(int item);}class display implements calculate{	int x;	public void cal(int item)	{		x = item * item;	}}class Main{   public static void main(String args[])   {    display arr = new display();    arr.x = 0;    arr.cal(2);    System.out.print(arr.x);   }}
8.All methods must be implemented of an interface.

A. TRUE
B. FALSE
C. Can be true or false
D. can not say
Answer» B. FALSE


Discussion

No Comment Found