Hi ,
        To indicate a long literal , i believe we have to append the suffix
L to the literal expression...,
Rakesh


> ----------
> From:         raj[SMTP:[EMAIL PROTECTED]]
> Sent:         Saturday, November 06, 1999 2:37 AM
> To:   [EMAIL PROTECTED]
> Subject:      Off Topic: long data type
>
> Hi ,
>
> Below code gives compilation err @ long  mcustId1=.....
> but  it compiles at long mcustId=.......
> Could any one give the  reason?
>
> import java.lang.*; /*needed for the sleep command*/
> import java.math.*;
>
> public class Test
> {
>   public static void main (String[] args)
>   {
>    long mcustId=4611686018427388313;
>    long mcustId1=12345678912;
>     System.out.println("mcustId *** "+mcustId);
>      System.out.println("mcustId1 *** "+mcustId1);
>
>   }
> }
>
> Thanks,
>
> raj
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to