hi,
My name is Dan and I'm a junior in High School. I currently know
advanced object oriented (and some .net) C++, but now I've found out
that the CompSci test is no longer c++ and is now java. Unfortunately
the computer department of school is made up of a history teacher who
only works half time, the wife of the chief excusive of the school(who
has a doctorit in English), and a IT who i wonder if he even has a
degree or certification what so ever so i need to learn Java on my
own. Due to that can anyone recommend a cheap book aimed at people
making the change from C++ to JAVA (I've come across ones made for ppl
from VB to C++ so i figure there must be ones for this)?
thanks for the help,
dan
Christophe Vanfleteren - 01 Mar 2004 23:50 GMT
> hi,
>
[quoted text clipped - 12 lines]
>
> dan
Google around searching on "java for c++ programmers" (with the quotes), you
can get some good tutorials that way.

Signature
Kind regards,
Christophe Vanfleteren
Tom - 02 Mar 2004 04:51 GMT
Go to www.javabook.org for an actual college text that the author
makes available in electronic form. It isn't a C++ to Java book, but
what you need to learn is Java, not the differences (and similarities)
between C++ and Java. If you decided to take up Japanese after
learning Spanish, would you want a Spanish to Japanese book, or just a
book to learn Japanese?
Another electronic book that you may want to look into is "Thinking In
Java" by Bruce Eckel. You can find it in a couple of different ebook
formats.
Find the college board website. You can find information there about
what you need to learn for the AP exam.
Of course, your background with C++ will help to work through the
first half-dozen chapters pretty quickly. Much of the syntax is the
same, since Java started out as an attempt to modify C++. You
indicate that you are familiar with OOP, which is often the biggest
hurdle for people coming from C++ (since OOP is semi-optional in C++,
but not in Java). That will serve you well.
Download the Java SDK from Sun (nice and free). Be sure to also
download the documentation (also free). Also, you can find several
free editors to use. Here are two that I like:
DrJava (drjava.sourceforge.net)
Written in Java and created by Rice University
Has a very handy interaction window where you can experiment with
code snippets.
JCreator (www.jcreator.com)
Freeware and Shareware versions.
Native Windows program (written in C++) - if you have an older
machine the extra speed will be appreciated.
Here are a couple of differences that you might as well learn now.
1. Java has only single inheritance. That is a good thing.
2. No pointers in Java.
3. Java tends to be much "wordier" than C++
4. Most things are easier to do in Java, but there are some things
that are harder to do than in C++ because they have to be done
in a cross-platform manner. Get used to it, it won't go away.
5. Console i/o is a pain in the ... in Java. It is one of the
things referred to in #4.
> hi,
>
> My name is Dan and I'm a junior in High School. I currently know
> advanced object oriented (and some .net) C++, but now I've found out
> that the CompSci test is no longer c++ and is now java. Unfortunately
> the computer department of school is made up of a history teacher who
[quoted text clipped - 8 lines]
>
> dan
Jon A. Cruz - 02 Mar 2004 05:29 GMT
> Go to www.javabook.org for an actual college text that the author
> makes available in electronic form. It isn't a C++ to Java book, but
> what you need to learn is Java, not the differences (and similarities)
> between C++ and Java.
I'd recommend against that book.
It's come up in the past, and the main problem seems to be that it's
written as if they author didn't quite understand Java, and was better
with C++ and such.
He makes some confusing choices in how he presents things, and makes
things harder to understand. He also has it filled with personal idioms
that obscure the Java language itself. (For example, he had a very
strange one for sometimes using "extends Object" and other times not,
which hides the fact that *every* class is derived from Object).
:-(
> Another electronic book that you may want to look into is "Thinking In
> Java" by Bruce Eckel. You can find it in a couple of different ebook
> formats.
This I've found to be very useful and breaks out the concepts very well.
Plus it tends to help those who know an existing language transition
into, well "thinking in Java".
Horus - 02 Mar 2004 04:56 GMT
JAVA for C/C++ Programmers by Michael C. Daconta This is a special book to
me and I will never get rid of it. This book and Java has led me to study &
understand more things than I ever imagined. The code snippets are
available online if you can't find one with a CD. Check out his website; I
think it can be found searching his name on google.
Daconta even lists and discusses a little database of his called EZDB in the
book.
Try www.amazon.com or www.half.com to find it used or new.
http://www.amazon.com/exec/obidos/tg/detail/-/0471153249/qid=1078203300/sr=1
-1/ref=sr_1_1/102-2491278-1772919?v=glance&s=books
> hi,
>
[quoted text clipped - 12 lines]
>
> dan
Dan Irwin - 02 Mar 2004 14:59 GMT
> JAVA for C/C++ Programmers by Michael C. Daconta This is a special book to
> me and I will never get rid of it. This book and Java has led me to study &
[quoted text clipped - 26 lines]
> >
> > dan
i just looked quickly, i see it was made in 1996, is it still up to date
Horus - 02 Mar 2004 15:33 GMT
It is out of date. Java has been "revised" a little since then. I dont
mean for this to be your only book to learn java. You will need a good
college text book that teaches from scratch and a class library ref.
I got this book at a flea market for $5.00
http://www.amazon.com/exec/obidos/tg/detail/-/0130869007/qid=1078241547/sr=1
-1/ref=sr_1_1/102-4024737-1436158?v=glance&s=books
Sean
> > JAVA for C/C++ Programmers by Michael C. Daconta This is a special book to
> > me and I will never get rid of it. This book and Java has led me to study &
[quoted text clipped - 6 lines]
> >
> > Try www.amazon.com or www.half.com to find it used or new.
http://www.amazon.com/exec/obidos/tg/detail/-/0471153249/qid=1078203300/sr=1
> > -1/ref=sr_1_1/102-2491278-1772919?v=glance&s=books
> >
[quoted text clipped - 15 lines]
> > > dan
> i just looked quickly, i see it was made in 1996, is it still up to date
Horus - 02 Mar 2004 15:39 GMT
Whatever you do dont bother buying Java Class Libraries: Unleashed. This
book sucks, I gave it to my baby boy to tear up. It sells for .99 online
and it's not worth the shipping. For example; the damn book didnt even
contain RandomAccessFile class coverage!!
> It is out of date. Java has been "revised" a little since then. I dont
> mean for this to be your only book to learn java. You will need a good
> college text book that teaches from scratch and a class library ref.
> I got this book at a flea market for $5.00
http://www.amazon.com/exec/obidos/tg/detail/-/0130869007/qid=1078241547/sr=1
> -1/ref=sr_1_1/102-4024737-1436158?v=glance&s=books
>
[quoted text clipped - 16 lines]
> > >
> > > Try www.amazon.com or www.half.com to find it used or new.
http://www.amazon.com/exec/obidos/tg/detail/-/0471153249/qid=1078203300/sr=1
> > > -1/ref=sr_1_1/102-2491278-1772919?v=glance&s=books
> > >
[quoted text clipped - 15 lines]
> > > > dan
> > i just looked quickly, i see it was made in 1996, is it still up to date
Horus - 02 Mar 2004 15:01 GMT
I somewhat agree with the argument aginst Daconta's book but It reads very
well and shows direct corelations between C++ andd JAVA. I was never able
to learn anything from ONE book though. You will need several as well as a
Class Library Reference.
Sean
> hi,
>
[quoted text clipped - 12 lines]
>
> dan
Dan Irwin - 02 Mar 2004 20:40 GMT
i found this book "Java Software Solutions for Ap Computer Science".
Dose anybody know anything about it?
heres a link to it
http://www.amazon.com/exec/obidos/ASIN/0321153677/leviguides-20/102-7235405-2396908
Tom - 02 Mar 2004 19:11 GMT
One thing to keep in mind is that you don't just have to learn Java,
you have to learn what is on the AP test. I understand Jon's
criticisms of the book that I mentioned, but it DOES cover the AP
subset, and is in use in AP courses. (Plus, it has been revised since
Jon first read it, and it is FREE!!!)
You will also need to get a copy of the case study that the AP is
using. If you can't get it from the AP site yourself, I can help you
with get it.
> hi,
>
[quoted text clipped - 12 lines]
>
> dan
Dan Irwin - 03 Mar 2004 00:34 GMT
> One thing to keep in mind is that you don't just have to learn Java,
> you have to learn what is on the AP test. I understand Jon's
[quoted text clipped - 22 lines]
> >
> > dan
i realy dont know much about how the AP works, how dose it work?