>hii
>
>thanks for reply.
A couple of points to consider..
1) Most folks around these groups prefer 'best effort'
spelling. That excludes 'cute' SMS style abbreviations
like 'u' for 'you', or the term 'hii' instead of the more
generic/common 'hi'.
2) Use of a single capital letter at the start of each
sentence (or important expression, like 'Hi') can make
a post a lot easier to 'skim' or read quickly - this also
encourages people to help.
3) A lot of folks prefer if you 'post in-line with trimming'
rather than top-post replies. See Lew's reply for an
example, but for more details look to..
<http://www.physci.org/codes/javafaq.html#toppost>
..and..
> ...I perfectly agree with u but when I think about
>memory allocation of this expression I am not able to analyze it.
>Could u explain that??
4) One single '?' mark - quite intelligently used to identify
your (latest) technical question - is always enough.
I hope you find the technical resolution to the problem,
and also hope that my tips might be of use to you.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Andrew Thompson - 14 Aug 2007 13:28 GMT
>>hii
>>
>>thanks for reply.
>
>A couple of points to consider..
5) A subject line of 'I have doubt' is a very poor subject
line as read by this (western) mind. "If you have doubt,
consult your guru/priest." The word 'doubt' probably has
a significantly different meaning to you, than it does to me.
Sticking to a technically specific subject line, perhaps
lacking *any* verbs like 'doubt' or references to people
(nouns), like 'I' - would be best. Even something like..
Internal works '++'?
..(with or without the question mark) would have been a
better 'subject line' for this post, in that anybody who had
an in depth knowledge of the JLS (Java Language Spec.)
would be tempted, even from the title, to read the post,
& 'puzzle out' the question you had.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Lasse Reichstein Nielsen - 14 Aug 2007 23:07 GMT
>>>hii
>>>
[quoted text clipped - 4 lines]
> 5) A subject line of 'I have doubt' is a very poor subject
> line as read by this (western) mind.
I once heard explained that this is indeed a common mistranslation
of "I have a question". I don't remember the language that causes
this mistake, but the original poster's IP places him in India,
so Indian is a good guess.
/L

Signature
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Andrew Thompson - 15 Aug 2007 00:50 GMT
> >>>hii
>
[quoted text clipped - 7 lines]
> I once heard explained that this is indeed a common mistranslation
> of "I have a question".
I's say that is a good bet.
I aim to correct it wherever I see it. There
are particular mangling's of the English
language that I will overlook, and still others
that I do myself, but *that* is not one that I
can let pass without comment..
It is my problem, I know, and I'm dealing with it.
..In a very public, ..archived way. ;-)
Andrew T.
Lew - 15 Aug 2007 02:04 GMT
> It is my problem, I know, and I'm dealing with it.
> ...In a very public, ..archived way. ;-)
I have a doubt that that will worry you for very long.

Signature
Lew
Lasse Reichstein Nielsen - 15 Aug 2007 07:32 GMT
>> It is my problem, I know, and I'm dealing with it.
>> ...In a very public, ..archived way. ;-)
>
> I have a doubt that that will worry you for very long.
Yeah, I question that too.
/L ;)

Signature
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
blmblm@myrealbox.com - 15 Aug 2007 11:46 GMT
> > >>>hii
> >
[quoted text clipped - 15 lines]
> that I do myself, but *that* is not one that I
> can let pass without comment..
Skitt's law [*] in action? (Did you really want that apostrophe
in "mangling's"?)
[*] http://en.wikipedia.org/wiki/Skitt%27s_law . It's amazing
some of the stuff one can find in Wikipedia ....
> It is my problem, I know, and I'm dealing with it.
> ..In a very public, ..archived way. ;-)
This usage ("doubt" for "question") bugs me too. But I had
a discussion of it in some newsgroup not long ago, and one of
the other posters claimed that it was standard usage in India,
and that perhaps the people doing it had a good claim to be
regarded as native speakers of yet another version of English
("Indian English" as opposed to "US English", maybe). So I'm
less inclined than I used to be to call it a mistake. FWIW,
maybe.

Signature
B. L. Massingill
ObDisclaimer: I don't speak for my employers; they return the favor.
Andrew Thompson - 14 Aug 2007 13:34 GMT
..
>3) ... See Lew's reply ...
Oops! Make that *LewyG*!
My apologies to both of you - I'll try to check the
attribution lines more carefully in future.

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Lew - 14 Aug 2007 13:44 GMT
> 3) A lot of folks prefer if you 'post in-line with trimming'
> rather than top-post replies. See Lew's reply for an
You mean "LewyG"'s reply. "Lew" is a different person from "LewyG". By
calling it "Lew"'s reply some might think you meant a different "Lew".
Perhaps it's the name, but "LewyG" does seem most wise and perspicacious.

Signature
Lew
Manju - 16 Aug 2007 05:21 GMT
Hi
I will follow your tips given to me.
Thanks
Best Regards
Manjiri Tatke
> >hii
>
[quoted text clipped - 29 lines]
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200708/1
Like many expressions, evaluation of x++*++x requires the use of a
couple of temporary storage locations. In the bytecode model, they will
be locations on the virtual machine's stack, but most real machines use
registers instead.
Either way, I would not expect any memory to be allocated during
evaluation of the expression.
Patricia
> hii
>
[quoted text clipped - 16 lines]
>>
>> in [] is value after incrementation to show how this goes.
LewyG - 14 Aug 2007 14:33 GMT
A: Because this breaks natural reading order
Q: Why?
A: Answering over the post.
Q: What makes people angry while reading Usenet?
;-)
Patricia Shanahan - 14 Aug 2007 16:14 GMT
> A: Because this breaks natural reading order
> Q: Why?
> A: Answering over the post.
> Q: What makes people angry while reading Usenet?
>
> ;-)
A: Because the order makes no sense at all
A: Mixing top and bottom posting in the same article
Q: What makes people really confused while reading Usenet?
Q: Why?
:-)
Patricia
> > "Manju" <manjiri...@gmail.com> wrote in message
>
[quoted text clipped - 12 lines]
>
> > in [] is value after incrementation to show how this goes.
> hii
>
[quoted text clipped - 5 lines]
>
> Manjiri (Manju)
I think the one thing that nobody thought to mention. If you don't
understand the results clearly, then the expression is too complex.
You might have understood it better as
int x = 2;
int y = x;
x++;
++x;
y *= x;
Anyway, my point is that you should avoid ambiguous and confusing
expressions. Even if the compiler knows what you want, and its "well
defined" behavior, source code is intended for humans, not compilers.
You are writing code to be understandable in the future.
> hii
>
[quoted text clipped - 22 lines]
>
> > in [] is value after incrementation to show how this goes.
Sometimes the best thing to do is show rather than tell.
/cygdrive/d/dl# cat TestPP.java
public class TestPP
{
public static void main(String[] args)
{
int x = 2;
int y = x++ * ++x;
System.out.println(y);
}
}
/cygdrive/d/dl# javac TestPP.java
/cygdrive/d/dl# java -cp . TestPP
8
/cygdrive/d/dl# javap -c -classpath . TestPP
Compiled from "TestPP.java"
public class TestPP extends java.lang.Object{
public TestPP();
Code:
0: aload_0
1: invokespecial #1; //Method java/lang/Object."<init>":()V
4: return
public static void main(java.lang.String[]);
Code:
0: iconst_2
1: istore_1
2: iload_1
3: iinc 1, 1
6: iinc 1, 1
9: iload_1
10: imul
11: istore_2
12: getstatic #2; //Field java/lang/System.out:Ljava/io/
PrintStream;
15: iload_2
16: invokevirtual #3; //Method java/io/PrintStream.println:(I)V
19: return
}