Assume that you have a class with the following classdeclaration:
public class SomeClass
{
// class implementation notshown
}
The following code exists inside a method of SomeClass, and thiscode compiles without errors:
int result = calculate(4, 3.14);
Which of the following is true about the calculate method?
A. It is a private method.
B. It is a public method.
C. It is located in SomeClass.
D. It is not located in SomeClass.
E. It is an abstract method.
Answer
Answer: C. It is located inSomeClass.
A and B can also be true. If you have to chose only one answer,then C is the answer.