aspose file tools*
The moose likes Certification Results and the fly likes new SCJP in town :) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Certification Results
Bookmark "new SCJP in town :)" Watch "new SCJP in town :)" New topic
Author

new SCJP in town :)

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Chandra...
You're right pal...the bug is fixed now

Thanks
Shyam
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
Dear all,
Frankly speaking,i draw diagrams to take decisions whether
an object ref. conversion or casting is valid or not.I am
finding it difficult to put it in words
(I can explain it within no time to a person sitting next to
me).I have put my best efforts but still am not satisfied
whether it will be easy to understand.Please give me feedback,
which part i have not written clearly,i will quickly try to
better it.Also this is not a topic which you should try to
grasp in 15 minutes.Take breaks in between otherwise it will
be very boring.
regards,
leena
(next message is about obj. ref. conversion)
(after that is obj. ref. casting)
all the best
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
(please do not read completely in 1 day)

(i guess i am a very bad writer )

[This message has been edited by leena rane (edited November 10, 2001).]
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
Now we come to object reference casting
Jim Petersen
Ranch Hand

Joined: Jul 24, 2001
Posts: 241
Leena you should save this for a Book !
Seriously I like youre approach and find this easier to follow than most books on the subject
thanks for helping all those studying Jim


- Jim Petersen <br />SCJP2<br />SCWCD<p>- but then again, I could be wrong...
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
We come to the end of torture
summary:
1.object reference conversions:
done completely at compile time
none of the 9 rules should be violated,then it compiles.
(while applying rules just look at LHS and RHS types not the
actual object type-which could be totally different than the LHS
and RHS type)
If it compiles then it is definitely going to run//u know why-
done entirely at compile time
2.object reference casting:
a.compile time check->10 rules satisfied then compilation
successful else compile time error
(while applying rules just look at LHS and RHS types not the
object type-which could be totally of different than the LHS and
RHS type)
if it compiles->
b.run-time check:
do what i have said between ****
i.e we actually have to bother what type is the object of
irresective of what type is on RHS.Replace(imagine) RHS type
with some reference of the type,of which the object is actually
of.
Do not change LHS type.
Now ask this question to yourself->can the LHS type point to the
imaginary RHS type
to get the answer to this apply conversions rule
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
Originally posted by Jim Petersen:
Leena you should save this for a Book !
Seriously

Jim,
I had a good laugh reading your comment
Thanx a lot.
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
ChandraShekhar,
I am extremely sorry,i could not reply your mails.
Let me answer one of your question:
You said you had difficulty remembering operator
precedence,right!!
Let's look at this story from my latest novel
There was a boy named Annar
There was a girl named Arithma shift
both developed a relationship
Finally they got married and bought a house.
One day,there was fire in the house.
The reason of the fire was unclear.
Was that due to bit of short circuit in the house?
Alas,all became = to ash.
Everything was over

The story(the biggest flop) in short:
(now remember only this - forget the bigger story)

Now let's see the casting for the roles:

I hope this will help you,
regards,
leena.

[This message has been edited by leena rane (edited November 08, 2001).]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
ha ha! I like that...
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Leena,
thanks for the explaination. I liked your sense of humor . Now it is easy to remember. Good going.
In your notes on Object reference and casting above, you mixed up primitive conversion & casting with Object conversion and casting. I guess you can give example of Object conversions and casting as given in RHE. And a note on primitive ones aswell. That would be great.

Best Wishes,
Chandra!
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
Originally posted by chandrashekar munukutla:
Now it is easy to remember.

Happy to know it helped you


In your notes on Object reference and casting above, you mixed
up primitive conversion & casting with Object conversion and
casting.

No i don't think i have mixed up primitive and object conversion
and casting.Every use of an example is intentional,to
simplify some point.I don't know whether you would agree with
this.(off course if anybody feels,it is breaking the link in
reading,please tell me,i shall delete them)


I guess you can give example of Object conversions and casting
as given in RHE. And a note on primitive ones aswell. That
would be great.

RHE is more than sufficient for primitive conversions and
casting.If you are finding any trouble ,do let me know.
regards,
leena.
Donald Nunn
Ranch Hand

Joined: Nov 11, 2000
Posts: 200
Congrats, Leena. You deserve it.

------------------
Donald Nunn
Sun Certified Programmer for the Java� 2 Platform


<b>Donald Nunn</b><br />Sun Certified Programmer for the Java 2 Platform
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9047
    
  10
Congratulations. You have learned a lot.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi leena,
See below. you have described Object Conversion using primitives. I agree that you have used it to make things easier but( you have used it).
I appreciate your help in putting up this wonderful notes and the Operator assignment one with easy explaination. thank you.
(In your first post, Under) object reference conversions

I guess any person who read this post might be intelligent enough to note this. But for those who haven't, I just wanted to highlight this.
This is just my personal opinion. You need not delete your post. It is good.
I know that RHE is good enough. I am fine with Conversion and Casting.
regds,
Chandra!

------------------
Where there is a Will, there is a Way.
shailesh sonavadekar
Ranch Hand

Joined: Oct 12, 2000
Posts: 1874
congratulations , Leena. Great score. All the very best for the future.
Malar Ravi
Ranch Hand

Joined: Oct 15, 2001
Posts: 51
Hi Leena,
After reading your notes on Collections and Reference conversion & Casting, I find myself very clear on those topics. If you find time could you post your notes on I/O? Thank you very much.
Congrats on passing with an excellent score! Best wishes for your future.
Regards,
Malar.
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
Malar,
I am happy to know that my notes helped you.
As i am giving another exam soon,i have a little problem with
time.But i would like to put some notes on thread and i/o as
soon as it is possible and i would be very happy if i can help
anybody preparing for SCJP.In the mean time i hope you have gone
through some tips on i/o preparation that i have given on page 1.
All the best for your preparation
Chandrashekhar,
I will hopefully improve my writing skills soon
1 thing for sure,i like writing a lot.
All the best for SCJP
Shailesh,
thanx a lot for the wishes,
nice to hear from you after so long
all the best for your future
Donald,
thanx for the wishes,
you deserve a pat on your back (AS400 to java)
regards,
leena.

[This message has been edited by leena rane (edited November 15, 2001).]
leena rane
Ranch Hand

Joined: Aug 13, 2001
Posts: 280
Originally posted by Marilyn deQueiroz:
Congratulations. You have learned a lot.

Thanx a lot Marilyn.
getting this comment from a sheriff - biggest gift for me from
javaranch.Your comment has indeed encouraged me a lot.
Thanx again,
regards,
leena

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

I always had a dream on dating with a SCJP girl from Mumbai :P ....Leena lets have some coffee we can discuss more on advance java topics

Congratulations on your awesome score


http://www.lifesbizzare.blogspot.com || OCJP:81%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new SCJP in town :)