GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Unable to understand the Output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Unable to understand the Output" Watch "Unable to understand the Output" New topic
Author

Unable to understand the Output

Anurag Jai
Greenhorn

Joined: Jun 21, 2009
Posts: 22
Hi All

I am unable to understand the below behaviour....


It is printing the output as "Not Equal".
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1509
    
    5

Hi Anurag,

Welcome to CodeRanch!

Please, UseCodeTags. For now, I've edited your post, however, please keep it in mind for further posts.

Also, please SearchFirst. You can get various similar issues and explanations in this forum only (you can start your search by following 'Threads others viewed' on this page).

I hope this helps.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Anurag Jai
Greenhorn

Joined: Jun 21, 2009
Posts: 22
I am unable to understand what you are saying.
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1509
    
    5

Anurag Jai wrote: I am unable to understand what you are saying.

What exactly you didn't understand?

Did you try to search for 'threads others viewed'? Also, in my previous post, two words are underlined by a faint dotted line. Please click those words for further info.

I hope this helps.
Anurag Jai
Greenhorn

Joined: Jun 21, 2009
Posts: 22
I am not able to find where is "Thread others Viewed".
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1509
    
    5

Anurag Jai wrote: I am not able to find where is "Thread others Viewed".

Do ctrl + F, and type 'Threads others viewed'. Hit enter key few times - until it reaches to(almost) bottom of the page.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Class String says about String.replace -
Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar.


So, two new objects got created, each with a different address.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Anurag Jai
Greenhorn

Joined: Jun 21, 2009
Posts: 22
Thanks All....Clearly Understood.
 
GeeCON Prague 2014
 
subject: Unable to understand the Output