In the following code suppose that f is an instance of foo


In the following code, suppose that f is an instance of Foo. class Foo { private int i; public static int s; private void imethod() {} protected static void smethod(){}} Which of the following statements is(are) incorrect? int t = f.imethod(); , System.out.println(f.s); , System.out.println(f.i); , class test {puclick int someMethod(){ f.smethod(); return 0; }}

Solution Preview :

Prepared by a verified Expert
Business Management: In the following code suppose that f is an instance of foo
Reference No:- TGS02754893

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)