In my opinion, JAVA was the easiest programming language
> (before C#... sorry guys) because there is NO POINTER at all =)
> Actually, I think everything is based on pointer in JAVA =P.
You raise important points that were discussed in detail in the clj.programmer
thread "Pointers in Java: Was Re: Strings...immutable?". You did a nice job of
summarizing the entire thread:
Point: In Java (not "JAVA",btw), there are no pointers.
Counterpoint: Everything (except primitives) is based on pointers in Java.
The first is false, but true. The second is true, but false.
There are no /C-style/ pointers in Java, that is, you cannot do pointer
arithmetic, pointers point only to values not variables, and other
differences. So the "point" is sort of true, but not really - (non-primitive)
variables in Java actually are pointers, a.k.a. references, to objects in memory.
Object-typed variables are all pointers in Java, but not everything in Java is
a variable. So the "counterpoint" is really false, but has a sloppy truth to
it. It is more accurate to distinguish between variables (pointers) and the
objects to which they point (values).
The important thing is that there are no C-style pointers in Java, but there
are Java-style pointers. These are different species of pointer, like bats and
whales are different species of mammal. Dig into the referenced thread if you
want details.
-- Lew
Alexander D. B. Kim - 25 Mar 2007 20:36 GMT
That's a crystal clear explanation on the concept of referencing
objects in JAVA. =) Moreover, in my opinion, that's the reason why
JAVA is called successor of the C++ programming language in terms of
"O-O" concept and programmers or readers feel it is easier than C++.
Am I right? =P
JAVA is a awesome programming language because it allows programmers
or development build their application for almost any platforms
whereas C# generally focuses on Windows platform only (I know there is
Mono and GNU.NET which also provides multi-platform envrionment).
By the way, thanks for your better explanation =)
Cheers,
> In my opinion, JAVA was the easiest programming language
>
[quoted text clipped - 26 lines]
>
> -- Lew
Lew - 25 Mar 2007 21:02 GMT
> By the way, thanks for your better explanation =)
Your future lack of top-posting will be thanks enough. :-)
(That's a sort-of in-joke on this group.)
Top-posting is when you place your answer above the material you quote. It's
more readable to quote in line - a bit of quoted material, your reply, quoted
material, reply, ..., interleaved. Also you should freely edit out anything no
longer relevant, since the newsgroup is available for old verbiage if needed.
I am gratified that you found my blather somewhat useful. The explanations in
the cited thread were its inspiration.
-- Lew