Thread: Quiz Time
View Single Post
  #39 (permalink)  
Old 05-08-2008, 12:30 PM
Eranga's Avatar
Eranga Eranga is offline
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Seems that I got my banana back,

Here is an example I came to mind in a second.

Code:
public class WhisIsTheBest { public static void main(String[] args) { String strObjOne = new String("String"); String strObjTwo = new String("String"); String strObjThree = strObjOne; System.out.println("String 1 is " + strObjOne); System.out.println("String 2 is " + strObjTwo); System.out.println("String 3 is " + strObjThree); System.out.println(strObjThree == strObjOne); System.out.println(strObjThree == strObjTwo); System.out.println(strObjThree.equals(strObjTwo)); } }
What did you say now pal.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote