public class Frodo extends Hobbit {
public static void main(String[] args) {
Short myGold = 7;
System.out.println(countGold(myGold, 6));
}
class Hobbit {
int countGold(int x, int y) { return x + y; }
What is the result?
Core Java Unit Test-1(CAJ003)
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.