Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.java.* > Newsgroup comp.lang.java.programmer

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-10-2012, 06:39 PM
bob smith
Guest
 
Posts: n/a
Default default equals function?

From: bob smith <bob@coolfone.comze.com>

Let's say I have a class like this:

public class Kern_Pair {
int letter1, letter2;

}

Can someone tell me how the default equals function will behave?

like

kernpair1.equals(kernpair2)

?

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 08-10-2012, 06:39 PM
Jeff Higgins
Guest
 
Posts: n/a
Default Re: default equals function?

To: bob smith
From: Jeff Higgins <jeff@invalid.invalid>

On 08/09/2012 05:58 PM, bob smith wrote:
> Let's say I have a class like this:
>
> public class Kern_Pair {
> int letter1, letter2;
>
> }
>
> Can someone tell me how the default equals function will behave?
>
> like
>
> kernpair1.equals(kernpair2)
>
> ?

<http://docs.oracle.com/javase/tutorial/java/IandI/objectclass.html>
Here is a convenient dashboard to the Oracle Java documentation.
<http://docs.oracle.com/javase/7/docs/>
You may replace the 7 in the above address with a 3, 4, 5 or 6 to see older
versions documentation.

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
Reply With Quote
  #3 (permalink)  
Old 08-10-2012, 07:41 PM
Arne Vajhøj
Guest
 
Posts: n/a
Default Re: default equals function?

To: Jeff Higgins
From: Arne Vajhoj <arne@vajhoej.dk>

On 8/9/2012 6:22 PM, Jeff Higgins wrote:
> Here is a convenient dashboard to the Oracle Java documentation.
> <http://docs.oracle.com/javase/7/docs/>
> You may replace the 7 in the above address with a 3, 4, 5 or 6
> to see older versions documentation.


And surprising that works (via redirect).

Surprisingly because Java SE 3 and 4 are J2SE 1.3 and 1.4!

Someone at Oracle has been smart.

Arne

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 01:26 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.