subject

What is the issue with the given code? HINT: It's not A. interface Box2{

static final int ITEM_CODE=201;

int method1();

double method2();
}

public class Window implements Box2{

public int method1(){

return ITEM_CODE;

}

}

public class myFrame{

public static void main(String args[]){

Window w = new Window();

System. out. println(w. method1());

}

}

A. The interface should be declared as abstract.
B. The class should be declared as abstract.
C. The interface should have an implementation of method2.
D. The class should have an implementation of method2.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
How do i draw hello world in python and how do i make it loop?
Answers: 1
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
You know the right answer?
What is the issue with the given code? HINT: It's not A. interface Box2{

static final i...
Questions
question
Mathematics, 28.04.2021 20:40
question
Mathematics, 28.04.2021 20:40
question
Mathematics, 28.04.2021 20:40
question
Mathematics, 28.04.2021 20:40
Questions on the website: 13722362