I will try it with two simple examples:

First have a look at this Java code:
String foo = new String("Example String");
String foo2 = foo;

Now have a look at this C code:
char[] foo = "Example String";
char[] foo2 = foo;
foo = foo + 1;

In the first example we have two references to the same object String, but you cannot 
manipulate the memory address of the references. On the other hand, in the second 
example we have two pointers to the same memory zone and the foo variable has been 
incremented by one, so that it will point to "xample String".

I hope this will help you understand

Rafa

-----Original Message-----
From: vinod kumar <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Wed, 10 Mar 2004 12:12:44 +0530
Subject: thanks rafa

hi rafa,

thanks for ur response....

i got it 50%... it will be good if u give some example how we cannot see the
address and manipulate it.

waiting for ur reply...

bye

vinod


>From: Rafael Tolosana <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: JavaMail 1.3.1
>Date: Tue, 9 Mar 2004 20:18:04 +0100
>
>Hi Vinod,
>
>In this case, Java is similar to Ada95, you can have a variable of any
>class type called reference, that it is in fact a pointer. However, you
>cannot see the address (its contents) or manipulate it. This mecanism
>reduces a lot of common programming errors which appear in orther languages
>such as C (segmentation faults and core dumps are typical errors for this
>reason).
>
>Regards,
>
>Rafa
>
>-----Original Message-----
>From: Mark Galbreath <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: Tue, 9 Mar 2004 09:05:42 -0500
>Subject: Re: JavaMail 1.3.1
>
>you do use pointers in Java...they are called references.
>
>Mark
>
>vinod kumar wrote:
>
> > hi friends,
> >
> > anybody knows why do we not use pointers in java..
> > this is what iam unable to answer myself..
> >
> > anybody please reply it..
> >
> > bye
> >
> > vinod..
> >
> >
> >> From: Martin Gainty <[EMAIL PROTECTED]>
> >> Reply-To: A mailing list about Java Server Pages specification and
> >> reference <[EMAIL PROTECTED]>
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: JavaMail 1.3.1
> >> Date: Mon, 1 Mar 2004 14:21:25 -0500
> >>
> >> C:\PROGRA~1\Apache Software Foundation\Tomcat 5.0\bin>echo %CLASSPATH%
> >>
>F:\Sun\AppServer\jdk\lib\mail.jar;F:\Sun\AppServer\jdk\lib\activation.jar
> >>
> >>
> >> /*Note both of these jars are in place*/
> >>
> >> C:\PROGRA~1\Apache Software Foundation\Tomcat 5.0\bin>startup
> >> Using CATALINA_BASE:   C:\PROGRA~1\Apache Software Foundation\Tomcat
>5.0
> >> Using CATALINA_HOME:   C:\PROGRA~1\Apache Software Foundation\Tomcat
>5.0
> >> Using CATALINA_TMPDIR: C:\PROGRA~1\Apache Software Foundation\Tomcat
> >> 5.0\temp
> >> Using JAVA_HOME:       F:\Sun\AppServer\jdk
> >>
> >> So in the final analysis mail.jar and activation.jar are on the
> >> classpath
> >> Suggestions?
> >> -Martin
> >> ----- Original Message -----
> >> From: "Dean, Michael D." <[EMAIL PROTECTED]>
> >> To: <[EMAIL PROTECTED]>
> >> Sent: Monday, March 01, 2004 11:06 AM
> >> Subject: Re: JavaMail 1.3.1
> >>
> >>
> >> > Marty:
> >> >
> >> > Now this smells like a classpath problem:
> >> >
> >> > What is your application directory structure.  What does the
> >> command-line
> >> > invocation look like?  Where are you "sitting" (in the directory)
> >> structure
> >> > when you invoke?
> >> >
> >> > M
> >> >
> >> >
> >>
>===========================================================================
> >>
> >> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >> JSP-INTEREST".
> >> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >> DIGEST".
> >> >
> >> > Some relevant archives, FAQs and Forums on JSPs can be found at:
> >> >
> >> >  http://java.sun.com/products/jsp
> >> >  http://archives.java.sun.com/jsp-interest.html
> >> >  http://forums.java.sun.com
> >> >  http://www.jspinsider.com
> >> >
> >>
> >>
>===========================================================================
> >>
> >> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >> JSP-INTEREST".
> >> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >> DIGEST".
> >>
> >> Some relevant archives, FAQs and Forums on JSPs can be found at:
> >>
> >>  http://java.sun.com/products/jsp
> >>  http://archives.java.sun.com/jsp-interest.html
> >>  http://forums.java.sun.com
> >>  http://www.jspinsider.com
> >
> >
> > _________________________________________________________________
> > Skin is in! Bollywood is sizzling.
> > http://server1.msn.co.in/slideshow/striptease/ Check out these hot pics!
> >
> >
>===========================================================================
> >
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> >
> > Some relevant archives, FAQs and Forums on JSPs can be found at:
> >
> > http://java.sun.com/products/jsp
> > http://archives.java.sun.com/jsp-interest.html
> > http://forums.java.sun.com
> > http://www.jspinsider.com
> >
> >
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>
>Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>
>
>-------------------------------
>"Vulnerant omnes, ultima necat"
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>
>Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com

_________________________________________________________________
Easiest Money Transfer to India. Send Money To 6000 Indian Towns.
http://go.msnserver.com/IN/42198.asp Easiest Way To Send Money Home!

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


-------------------------------
"Vulnerant omnes, ultima necat"

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to