Core Java 1 (Basic Questions in Java)
Core Java 1 (Basic Questions in Java)
Questions in J'v')
Wh't is J'v' Cl'ss Lo'der?
We know th*t J*v* Progr*m runs on J*v* Virtu*l M*chine (JVM). When we
compile * J*v* Cl*ss, it tr*nsforms it in the form of bytecode th*t is pl*tform *nd
m*chine independent compiled progr*m *nd stores it *s * .cl*ss file. After th*t
when we try to use * Cl*ss, J*v* Cl*ssLo*der lo*ds th*t cl*ss into memory.
Wh't is enc'psul'tion?
Wh't is the difference between
implement'tion inherit'nce 'nd
interf'ce inherit'nce with
composition?
Why would you prefer code reuse vi'
composition over inherit'nce?
Wh't is progr'mming to interf'ce?
Wh't is the difference between
'bstr'ct cl'ss 'nd interf'ce?
Wh't 're m'rker interf'ces?
Wh't is difference between method
overlo'ding 'nd method overriding?