• Log in or sign up for an account here: https://www.sythe.org/login

C++ or Java???

Which one is better?

  • Java

    Votes: 26 38.8%
  • C++

    Votes: 40 59.7%
  • Other(Post it name)

    Votes: 1 1.5%

  • Total voters
    67
Status
Not open for further replies.
If your not so good on c++ i would say java since java you can play around with and not do any damage to your computer .. but i dont mean play around with as in acaully get out a notepad.. and start codeing lol...

and c++ is used in alot of games but you gotta know what your doing cause there is a chance of a memory leak and you dont want that happen =)

so if your plainning on building a game...

first learn - html
second - html / abit of java
third - java

:D
 
If your not so good on c++ i would say java since java you can play around with and not do any damage to your computer .. but i dont mean play around with as in acaully get out a notepad.. and start codeing lol...

and c++ is used in alot of games but you gotta know what your doing cause there is a chance of a memory leak and you dont want that happen =)

so if your plainning on building a game...

first learn - html
second - html / abit of java
third - java

:D
At school we learn

First - PHP and VB
Second - PHP, VB.net and C++
Third - Java
 
You should definately use C++.
C++ has more compatibilities and handlers with integers and chars, although it is slightly more complicated.

Java's Integers are limited to: 2,147,483,647
And C++'s unsigned Integers are limited to: 4,294,967,295

thats about 2x more.

I hope this helped =]
 
You should definately use C++.
C++ has more compatibilities and handlers with integers and chars, although it is slightly more complicated.

Java's Integers are limited to: 2,147,483,647
And C++'s unsigned Integers are limited to: 4,294,967,295

thats about 2x more.

I hope this helped =]

What does that matter? It's extremely hard if you compare with Java, and i wouldn't be able to play his little game because i use Linux :p
 
I want to clear up some conceptions some of you seem to be having about Java and C++.

Unless you are creating something that is extremely processor-intensive and where speed is extremely important, such as a huge 3D game (e.g. Halo) or doing scientific computing or something, I don't think you need to worry about speed differences between the two. As a lot of you probably already know, Java already uses just-in-time compilation, so the speed difference is often not as great as you think. And if you're really going for absolute speed, you'd be using C anyway.

And of course there will be a learning curve for both Java and C++. Yes, C++ is more prone to bugs like memory leaks, but the actual cleaning up of resources is not difficult, just remembering to do so. Instead, the real difficulty for C++ is learning the language and the Windows API, and OpenGL or DirectX. For Java, it's learning the huge Java library. When it comes down to it, I don't think one wins over the other unless you have some specific needs, in which case you should already understand that programming languages are just tools. Some are better than others for certain jobs. The end.

EDIT: I almost forgot this. Java is of course very portable with the JVM, but I think speljohan mentioned OpenGL as a portable graphics library, and he's absolutely right. So what if you have to compile several copies? If you know what you're doing, then just use some preprocessor directives and make some other small OS-dependent changes. Of course, if you are just starting out, then forget Java and C++. Go learn Python.
 
I'd much rather make it in C, myself, however, I'd say Java would do the job. Portable, Cross-Platform, Accessible from either a stand-alone application or browser-embedded applet; all the choices make my head spin.
I'd say, if you really want to have fun, make it an OpenGL project in C and have fun looking around and altering the settings (how I first got interested in programming).
But, for someone who has never programmed before, I'd say learn from scratch, get a good book/video tutorial (Google search for VTC C, C++, and Java video tutorials).
C is versatile, itself, so it'd be best to learn it first to grow good habits; either that or Python.

Have fun with whatever you do, in the end programming is programming, and, in my opinion, the best type of programmer can find a way to get the best in both worlds. Learn a little bit of everything and find what you're most comfortable in, then go from there.
 
I know that you are not going to make a game like runescape; just by asking that question. Game programming is very difficult. I think you are forgetting that you will need graphics. Which is a huge part of the job. And making it like runescape(somewhat 3d, even though you mentioned 2d) is not easy, at all.

But to answer your question, I would go with Java for gaming...

edit: dont listen to the idiots talking about learning HTML for game programming. wtf?
 
Member of the Month Winner
Sythe's 10th Anniversary
Game programming is indeed, very difficult. Jagex created RuneScape over a series of years. Though Java would be "easier" for what you're trying to make, you would still find it quite difficult. My best bet is that Andrew/Paul Gower had been programming in Java for many years before they even started to make RuneScape, so if you want to make something in this context then you're better off actually learning the thing first, programming second. Remembering to keep a balance in your life. There isn't much point living if all you're going to do is live for making this game. Andrew and Paul Gower for example, they started RuneScape as a project in their parents home I believe, but once it got popular, they started to hire people, and more and more staff, and now they have millions of subscribers, and they're millionairres.

Keep a balance, but you'd have to have been learning a language for a couple of years at least before you start to tackle game programming - even when you consider RuneScape. Plus... Game programming is generally done in a team. Hence you'd be better off first joining a modding team for a game like Half-Life first, to get a little hands-on experience.

Both languages suit what they're made for. Depending on what you wanted to do, you could make this sort of game in either of them - though C++ would be the - ah - "generic" choice. Meaning, most people would choose C++ for obvious reasons. Java is still good, though, just you couldn't fine-tune it anywhere near as much as in C/C++. Its really a hard decision. Seeing as you'll be wanting to learn something easy to start off with, I voted Java.

I hope my extremely long reply that took 5 minutes to write really quickly with my mind running at 200kmph really helped you a little bit ;)

and of course, this has been debated in short like 10 times already, I just want to feel like I've actually posted something useful ^_^
 
i want to do a 2D game like runbescape....i know that runescape is made in java but whats better to do this???C++ or Java???

I suggest that you learn to spell, and then learn to program because it honestly sound like you know what the fuck ur talking about
 
c++ runs a little better and smoother
 
I vote c++, it's a very hard yet usefull language, I say it's one of the best!
 
Runescape uses Java as you might know.
So for a browser based game, Java definitely.
Java can be embedded in browsers as an applet while running with less permissions.
 
i want to do a 2D game like runbescape....i know that runescape is made in java but whats better to do this???C++ or Java???

Okay so for a game like runescape 2D. you should probably learn JAVA I recently bought a book on it and it's very easy to get key concepts. plus C++ is going to be extremly difficult for someone without any coding EXP. And you also have to remember that even if you by some chance make a game that 1,000's of people would want to play you would need the following..

  1. Server's 10-20 $$$$$
  2. A moderating team 10-20 people $$$$$$
  3. A Dev team for updates! $$$$$$
  4. Webspace (Not free either) $$$$$$$
  5. Webdesign team (if you dont do yourself) $$$$$$$
  6. LOT'S and LOT's of time $$$$$$
  7. A security team to keep out hackers $$$$$$

And the people saying you would need to learn HTML they're correct if your looking to do the website and Applet embedment yourself.

I hope this is helpful!
 
In C++ You Can Creat Rs2 In 2D Or 3D But In Java It's Harder
Its so funny how people try to sound like they know what they are talking about.

Personally I'd go with Java if your completely new to programming but yet again if your new to programming I wouldn't even try to make a game for a long time. Your just going to end up failing ultimately because you were impatient.
 
plus C++ is going to be extremly difficult for someone without any coding EXP.
I disagree. C++ was my first programming language, and I learned it when I was just about 10. If you are willing to spend time on learning it, it will be no issue.

Its been a while since I've used Java, but I believe it has built-in graphics functions, so that will probably help.
 
You're not going to make shit anyway, but for what it's worth;

Choice of language is irrelevant, it's the least of your troubles, since most commercial engines used in games like Half-life 2 implement their own scripting language to create levels etc.
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top