-
Java or C++
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
-
Re: Java or C++
Basic/C++ would be best for a beginer, although I started learning Java before anything else.
-
Re: Java or C++
-
Re: Java or C++
For a relative beginner, Java would be much easier to learn.
-
Re: Java or C++
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++:
Code:
public class Hello {
public Hello() {
}
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
Code:
#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...
-
Re: Java or C++
ok cool cheers for the info