School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,122 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,959 people online right now. Registration is fast and FREE... Join Now!




C++ or JAVA

 

C++ or JAVA

Nameless1

1 Aug, 2009 - 04:12 AM
Post #1

New D.I.C Head
*

Joined: 16 Jul, 2009
Posts: 12

ok guys, i am able to code in C#.Net, VB.Net, PHP and now i want to learn more about Desktop Applications, i decided to start oldy goldy languages such as C++ ro JAVA, which one to start.
Waiting for your replies smile.gif

User is offlineProfile CardPM
+Quote Post


SixOfEleven

RE: C++ Or JAVA

1 Aug, 2009 - 06:17 AM
Post #2

lives.ToCode();
Group Icon

Joined: 18 Oct, 2008
Posts: 3,066



Thanked: 170 times
Dream Kudos: 775
Expert In: C, C#, XNA, Game Programming, Programming Concepts

My Contributions
Since you know C# picking up Java will be a breeze. The biggest difference between C# and Java is that C# has it's namespaces and Java has it's libraries(can't think of what Java calls them at the moment.) The syntax of the languages is very similar. If you want to pick up another language Java is a good option. IDEs for Java, such as NetBeans, make creating GUI applications easier, like in Visual Studio for C# and VB.NET. So, since you are familiar with C# picking up Java should not be all that hard.

C++ is also very similar to C#. There are some major differences though. In C++ you will have greater control over your program and the operating system. It is also easier to make horrific errors that are much harder to track down. In C++, programming GUIs is a little more difficult.

Either one will be a feather in your cap. Java would be the easier of the two so if you want easy, go with Java. If you feel like more of a challenge I would say go with C++.
User is offlineProfile CardPM
+Quote Post

Nameless1

RE: C++ Or JAVA

2 Aug, 2009 - 11:51 PM
Post #3

New D.I.C Head
*

Joined: 16 Jul, 2009
Posts: 12

thanks for your reply dear wink2.gif, i will Chose C++.
But which one i mean CLI, VC++ or etc...

User is offlineProfile CardPM
+Quote Post

alainstgt

RE: C++ Or JAVA

3 Sep, 2009 - 12:18 AM
Post #4

New D.I.C Head
*

Joined: 4 Aug, 2009
Posts: 2

QUOTE(Nameless1 @ 2 Aug, 2009 - 11:51 PM) *

thanks for your reply dear wink2.gif, i will Chose C++.
But which one i mean CLI, VC++ or etc...


I would recommand to take a look at Qt from Nokia/Trolltech. They have developped a nice framework and their class library is the best and most intuitive you can find in the C++ world.
The advantage of this solution is, that you can deploy your code on Windows, Unix/Linux, Mac OSX and different embedded systems, all with one source code, you just have to rebuild!
Another nice feature is that you have a lot of IDE supported. In your case, you could use Visual Studio 2008, but also Eclipse and many others are supported. They have also developped their own IDE called Qcreator, this one beiing at the beginning of development life and actually not so ample than the other one just mentioned above.
Note also that there is a LGPL version of Qt, so taking a try does´nt cost anything.
Alain
User is offlineProfile CardPM
+Quote Post

e_barroga

RE: C++ Or JAVA

3 Sep, 2009 - 04:54 PM
Post #5

D.I.C Regular
Group Icon

Joined: 16 Feb, 2009
Posts: 435



Thanked: 24 times
Dream Kudos: 825
My Contributions
I would recommend that you learn Java (since you say you're interested in desktop applications).

For desktop applications I would say to learn C#/Java. So in your case (since you already know C#), I would recommend you look in to Java.
User is offlineProfile CardPM
+Quote Post

carltech

RE: C++ Or JAVA

5 Sep, 2009 - 06:30 PM
Post #6

DicKing
Group Icon

Joined: 19 Oct, 2007
Posts: 691



Thanked: 12 times
Dream Kudos: 25
My Contributions
If you wanna go into more of a lower level then go C++.
If you wanna go into something your more use to then go Java.

For C++ I would recommend that you first learn the CLI before moving into GUI's. Then you can chose MFC(yuck), QT, wxWidget, or anything else you wanna go for.

As far as compilers for C++:
I use g++, the GCC C++ compiler, for small programs since it is quick and small and I can use it through the console/terminal and I get to use notepad++ or any other text editor for editing.

devCpp,which uses GCC, on my laptop since it is so small and versatile.

And finally VS on the desktop for it's ease of use. Even if it does use a Microsoft specific compiler, which only makes since, it is darn easy to use.

I'm sure you already are familiar with Visual Studio's so why not use it?

P.S. There are tons of C++ compilers and IDE's out there to choose from and it all comes down to a matter of personal choice.

This post has been edited by carltech: 5 Sep, 2009 - 06:36 PM
User is offlineProfile CardPM
+Quote Post

bodom658

RE: C++ Or JAVA

5 Sep, 2009 - 06:47 PM
Post #7

Low-Level Extremist, High-Level Opportunist.
Group Icon

Joined: 22 Feb, 2008
Posts: 788



Thanked: 39 times
Dream Kudos: 325
My Contributions
Well, this is what it comes down to.

Java is a Higher Level Language. What I mean by that is that for every line of code you write, more lines of machine language are executed.

C++ is a Mid to High Language. It has all the low level awesomeness of C but also has the higher lever niceness of a newer language. So, depending on what you are doing in it, you may be executing more or less lines of machine language.

So, what do I think you should learn?

Both. By all means.

If you have experiance with C, learn C++, as it will be easy syntax wise, but will introduce you to the wonderful world of OOP.

If you have experiance with something like C#, go with Java for now, because, again, there is a very similar syntax, and you should already be getting a grasp on OOP.

Looking at your post, I am going to say that Java will be easier, but C++ will be more useful in the long run. Both are very much used in the industry, and knowing at least a little in both will be very beneficial.

IDE wise, for windows, go Eclipse for Java, Visual Studio for C++.

Alternative to these is Vim, emacs (but hey, vim is better), or Crimson Editor.

For Linux, go Eclipse with Java, CodeBlocks with C++.

Alternative again is Vim, emacs, or Geany.

Hope we've helped
~Bodom
User is offlineProfile CardPM
+Quote Post

matio

RE: C++ Or JAVA

10 Oct, 2009 - 12:51 AM
Post #8

New D.I.C Head
*

Joined: 1 Sep, 2009
Posts: 15


My Contributions
C++, Java isn't that much different to C# so why not try something new?
User is offlineProfile CardPM
+Quote Post

TheGDeveloper

RE: C++ Or JAVA

10 Oct, 2009 - 04:14 AM
Post #9

New D.I.C Head
*

Joined: 22 Sep, 2009
Posts: 40



Thanked: 2 times
My Contributions
C# is a combination o c++ syntax with java features
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 01:54PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month