Suppose you have the following
definition of class Person:
what is the output of this code?
this is about referencing and output is John:Paul both times.
Please explain me how? it is been explained in book, I read it thrice, but bit worried that if this type of question comes in exam I will have to think a lot about such type of question ...if my concept is clear I will think else i won't.
“How can you
declare a class Curtain in a package building so that it isn’t visible outside the
package building?”
and answer is because top level class can not be protected and private? being OCA candidate please explain me what is top-level class AND why it can't be protected if it can be default? I can understand it can't be private.
derived class can inherit and access protected members of its base class, regardless
of the package in which it’s defined. A derived class in a separate package
can’t access protected members of its base class using reference variables.
and protected members are not accessible to unrelated classes in different package.
what would be the output? if on StringBuilder methods are called from left to right here delete() is called first. and why it's output is not 12SUN4512S5?
Why it is appending out put of delete method twice?
I saw that OCP is not available for SE8 , and I don't have any study material for SE8, I liked Mala Gupta's book and it is available for SE7.....is there is huge difference between these 2? I have completed reading syllabus for SE7 now, will that help me if i want to prepare for SE8 now? I am thinking of taking one certification just to show that I know JAVA ...as I have changed country and my basic degree is not from this country where I live right now...and I am stay at home mum....