Which two statements are true? (Choose two.)

Given

class Foo {
static void alpha() {
/* more code here */
}

void beta() {
/* more code here */
}
}

Which two statements are true? (Choose two.)

Given

class Foo {
static void alpha() {
/* more code here */
}

void beta() {
/* more code here */
}
}

Which two statements are true? (Choose two.)

A.
Foo.beta() is a valid invocation of beta().

B.
Foo.alpha() is a valid invocation of alpha().

C.
Method beta() can directly call method alpha().

D.
Method alpha() can directly call method beta().

Explanation:



Leave a Reply 1

Your email address will not be published. Required fields are marked *