Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Java concepts and its programming

Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?

Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ?

A. An object of B contains data fields j, k, m
B. An object of B contains data fields k, m
C. An object of B contains data fields j, m
D. An object of B contains data fields i, j, k, m

Which statements are most accurate regarding the following classes? class A{private int i; protected int j; } class B extends A{ private int k; protected int m; } ? Read More »

Java concepts and its programming