comp science 1st yr. -- C++ or java ?

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

33 Replies - 7403 Views - Last Post: 29 August 2009 - 09:55 PM

#31 devonator   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 77
  • Joined: 06-September 08

Re: comp science 1st yr. -- C++ or java ?

Posted 25 August 2009 - 06:41 AM

View PostShitij1990, on 23 Apr, 2009 - 06:34 AM, said:

I am doing B.Tech in computer science and I am in the 1st year (I have almost completed 1st year)

I want to learn a language in the forthcoming summer break (2 months) between the first year and second year, and am quite confused if I should go for C++ or Java.
I have no previous experience of C++ (I did not have comp sci in school), but I have studied C in the first year.
I have asked a few people and most of them tell me that trying to learn java is no good if I already dont know C++, because then I will not know what the concept of "classes" is, and therefore will not be able to understand Java properly.

In a nutshell, my questions are-
1. Should I learn Java or C++ ?
2. Should I join a proper institute or buy books and do java/c++ at home??

i think u should for for c++ or c#

I learned java in school before c++. I was a bit confused at java at the time, but now im learning c++ on my own with a book, i find it much easier to understand. c++ is less wordy than java, from my personal experience. if u r really into computers, you can pretty much learn everything online or from books. institution is just a place for exchanging ideas and legal certificates ^^


good luck

This post has been edited by devonator: 25 August 2009 - 06:44 AM

Was This Post Helpful? 0
  • +
  • -

#32 sparkart   User is offline

  • D.I.C Addict
  • member icon

Reputation: 115
  • View blog
  • Posts: 697
  • Joined: 16-February 09

Re: comp science 1st yr. -- C++ or java ?

Posted 25 August 2009 - 06:28 PM

I learned C++ before trying to learn C#/Java.

In my opinion, I am glad that I did it at this approach opposed to learning Java first.

I took a glimpse at ASM and it looks rather complicated. Every higher-level language that I look at is extremely easy to grasp since I already know C++. The argument about learning Java first comes from the fact that you'll be learning with a completely object-oriented language and it is easier to understand.

However, object-orientation is still covered with C++ and the difficulty with C++ is really only something temporary and will subside very quickly. Also, everything else just gets simpler.
Was This Post Helpful? 0
  • +
  • -

#33 xclite   User is offline

  • I wrote you an code
  • member icon


Reputation: 1528
  • View blog
  • Posts: 4,448
  • Joined: 12-May 09

Re: comp science 1st yr. -- C++ or java ?

Posted 25 August 2009 - 08:09 PM

It's easier to go from C/C++ to Java than from Java to C/C++.
Was This Post Helpful? 0
  • +
  • -

#34 Dogstopper   User is offline

  • The Ninjaducky
  • member icon

Reputation: 2975
  • View blog
  • Posts: 11,224
  • Joined: 15-July 08

Re: comp science 1st yr. -- C++ or java ?

Posted 29 August 2009 - 09:55 PM

void printRecollection() {

cout << "At the beginning of last school year, i was a freshman, and I had at least a year of prior experiece with programming. I just knew the raw basic beforehand (you know C++ console developement, Java Console...), but then I took A.P. Computer Science A during that year, and we used Java as the primary language.";

} // End of recollection

I excelled, but only because I had studied it prior to the class, otherwise, like mostly everyone else, I would have failed. However, I knew C++ and made it do what I wanted to do.

It is confusing if you self-teach yourself at first, so I would suggest taking a class in C++ to start, but learn some Java on your own as well, just so that you get the feel for two different styles of programming.

There you go, some suggestions to better you life (I hope). Don't get overwhelmed and happy coding

~Dogstopper
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3