PDA

View Full Version : Java or C++



Flametongue
02-05-2005, 07:37 PM
Out of the two which would you say is the easiest for a beginner to learn and then hopefully make a program using either the above. I have done a bit of c++ and honestly i found it very hard. My next module consists of java. Is it similar to c++ (being hard) or somthing new thus being easier. Also are there any good tutorials sites which could help and how long would it take to master either of the above.

Cheers

iMartin
02-05-2005, 07:49 PM
Basic/C++ would be best for a beginer, although I started learning Java before anything else.

baccyman
02-05-2005, 07:57 PM
there are loads of places here that will help you

http://www.google.com/search?hl=en&q=learning+java&btnG=Google+Search

and here

http://www.google.com/search?hl=en&lr=&q=learning+c%2B%2B+basic&btnG=Search

Emdee
02-05-2005, 08:11 PM
For a relative beginner, Java would be much easier to learn.

Xilo
02-05-2005, 09:52 PM
I would really disagree with that. With Java, you are forced to have to worry about classes, objects, etc. from the very beginning. This stuff really shouldn't come until you are familar and fairly comfortable with doing basic stuff.

Take the basic "Hello world!" in Java and C++:

public class Hello {
public Hello() {
}
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

#include <iostream>

int main()
{
cout << "Hello world!" << endl;
}
Just right there, there are many things involved with the Java version that a beginner really shouldn't have to mess with. Granted, once you are used to programming, this stuff makes some stuff in Java easier. The whole OOP business is a lot simpler in Java. Though, for a real beginner who hasn't had much exposure to programming, C++ would be the easier to understand of the two. There is just less initial stuff to worry about...

Flametongue
02-06-2005, 11:18 AM
ok cool cheers for the info