• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can I take a C++ and Java programming class at the same time?

I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?
 
Originally posted by: iamme
is one language harder to learn than the other?

IMHO, C++ is harder. You have to deal with more in terms of pointers, more than one base class for inheritance and debugging Visual C++, etc....

I'm not a programmer but this is what I've seen.
 
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?
 
Most of it is the same. Most of the syntax is the same, all the logic is the same... Besides, if you're doing the intro classes, most of it is just learning how to think like a computer. I took a C++ class first, and then Java, and it was just hard to get used to System.out.print instead of cout (as Tyler already said), but that's really simple stuff. Most of the "guts" are identical. If statements, while, arrays... all identical or virtually so.
 
Originally posted by: iamme
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?

Do you want to do graphics/windows and such (eventually), then go C++.

Currently, Java graphics and windows using SWING are mega-slow.

If you want to do web stuff and JSP, go with JAVA.

amish

 
I've taken them both. C++ was the harder of the two for me. However, the theory for the two are very similar. There are only a few minor differences and of course, the syntax will be different. You're in for hell if you are taking two full blown programming classes at once...I wouldn't recommend it to anyone. I had a hard enough time doing ONE along with all of my other classes.

Argh...I hated programming!! 😕
 
Originally posted by: iamme
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?

I wouldn't take a class that was "learn how to program in XYZ language". If I had a choice between taking a class on data structures or something using java or C++, I'd probably do C++ because I don't really like java. But of course, data structures would be simpler in java, so....
 
C++ is definitely harder. It's possible to take both classes if you're the type that can finish those labs quickly. What I found to be overwhelming were those darn labs ... they just pile up and sooner than you know it, it's time for finals. :clock:
 
cool, thanks for the info, guys 🙂

now i'm leaning towards taking C++ this semester. if i like it, i'll look into taking JAVA later.
 
Originally posted by: iamme
Originally posted by: Tyler
I think you could do it since they're so similar in a lot of ways. However, you will probably occasionally do stuff like type "System.out.print" when you mean to use cout and vice versa.

Why do you want to take classes in two different languages?

my school offers both this summer at convenient times and they'll fufill graduation requirements.

if you had to choose 1, which would you guys recommend?

I'd recommend both. You'll never know when one or the other might be of help. Java was just coming out when I was in college so I did everything in C++. When I graduated I got a job doing VB (which I learned on the job BTW). I now have a job as a Java programmer (also learned on the job). One of the things my new company was trying to do was implement a third party DLL encryption utility with our web applications which are Java based and run on HPUX. They were thinking about using CGI to solve this. Instead I wrote a DLL wrapper in C++ that is accessed by our webapps via JNI. It works very well. Also gives me a little job security since no one here knows JNI (not that it was hard).
 
I just got done taking C (non ++) and Java at the same time. I didn't have any trouble keeping them straight or anything like that. C was harder. Very much so.
 
Back
Top