OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
OCPJP6
Arjun Srivastava wrote:by the serialization has been removed from SCJP 6.0,me too didn't find any question on same topic.
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Are you saying that exam questions depends on the testing center ?Bert Bates wrote:much to our dismay, serialization was recently removed from the SCJP / OCP objectives
we still occasionally hear reports of prometric centers using older versions of the exams with serialization questions included, so if your center is fairly remote, beware.
hth,
Bert
OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Harikrishna Gorrepati wrote:
Hi Trivikram, I clubbed your 2 files into 1 file as given below. Now, Do you know why I am surprisingly getting output as 1 0 3 instead 1 0 9
OCPJP6
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Hi Trivikram, I am sure you explained but I am not able to catch you. Could you please elaborate further on this. All we trying here is, separating last 3 lines into separate file or keep the complete code in single file. How it should affect the output because of these changes.Trivikram Kamat wrote:
Harikrishna Gorrepati wrote:
Hi Trivikram, I clubbed your 2 files into 1 file as given below. Now, Do you know why I am surprisingly getting output as 1 0 3 instead 1 0 9
Static variables are class variables, which are shared between the instances of the class.
When you read the serialized object, the static variable z is given already existing value, which is 3 - assigned by the object which was serialized.
That is the reason I'd split the code into two files to remove confusion.
OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Harikrishna Gorrepati wrote:
I am sure you explained but I am not able to catch you.
OCPJP6
OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
Harikrishna Gorrepati wrote:
Why we are getting different output ( 3 Vs 9 ) when we separated the piece of code..I understand the concept of static(Class) variables
OCPJP6