GIDForums  

Go Back   GIDForums > Computer Programming Forums > Miscellaneous Programming Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Apr-2009, 09:40
hypernova hypernova is offline
New Member
 
Join Date: Oct 2008
Posts: 2
hypernova is on a distinguished road

Computer science 1st year -- C++ or Java?


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??

Thanks in advance
  #2  
Old 23-Apr-2009, 09:52
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 713
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: comp science 1st year --C++ or Java ??


If you have studied C, you could really learn either. Both are very similar to C in syntax. The advantage to learning Java is that you don't have to practice memory management (in other words, you don't have to worry about deleting objects after you have created them). In C++, you do have to practice memory management. There is a ton of information/tutorials on both online. For a good Java tutorial, check out this course on the MIT site. For a good C++ tutorial, check out this.
  #3  
Old 24-Apr-2009, 07:39
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,628
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Computer science 1st year -- C++ or Java?


I would recommend C++ because of the memory management and other "hands on" work you have to do. When you move to other languages, you'll learn why/how they have improved upon C/C++. Another benefit is that many languages are based on C/C++, so learning them can carry over to other languages.

As fakepoo mentioned, the syntax for Java and C++ is very similar, considering C++ is "improved" C and Java is an improvement upon C++.

Several web sites and articles have talked about how Java is the "new BASIC" in that it teaches/reinforces bad coding habits, such as an over-reliance upon garbage collection rather than learning to code properly. Personally, I don't think it's the language but how a person learns to code. But there seems to be the start of a backlash towards teaching Java as an initial language in schools.

A similar thread was posted earlier; it has more information.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with program herceca C++ Forum 1 10-Dec-2007 09:19
PrintCalendar Program [HELP PLEASE!!!] icondor C Programming Language 5 18-Nov-2006 04:00
Date killer9012 C++ Forum 74 06-Nov-2006 14:30
Shared & Reseller || 500MB/10GB $2.58 p/m || 50% first two months, then 20% for life AlexW Web Hosting Advertisements & Offers 0 25-Feb-2006 08:48
Help with array and function input FearlessFife35 C Programming Language 13 16-Apr-2004 15:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 09:11.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.