SA-MP Forums Archive
Java or C++ ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Java or C++ ? (/showthread.php?tid=522127)



Java or C++ ? - Tadas - 26.06.2014

Hello
Can anyone suggest me which programming language choose first Java or C++ and why?
P.S I already learned Pawn.

Sorry for my bad English if there are some mistakes


Re: Java or C++ ? - Infinity - 26.06.2014

I'd say Java.
Java is easier to get a hang of, and is a nice introduction to Object Oriented Programming (OOP). It also doesn't feature the relatively difficult memory management of C-type languages.

However, this all depends on what you want to do with it.


Re: Java or C++ ? - Rittik - 26.06.2014

How about learning C sharp.


Re: Java or C++ ? - KingHual - 26.06.2014

Java - awkward virtual stack machine, low performance, managed, garbage-collected (simplified memory management)
C++ - you'll necessairly stumble upon C functions and memory management, which could easily lead to memory leaks and is in general harder to maintain as it's not garbage-collected

Your call whether to choose simplicity or performance.


Re: Java or C++ ? - Tadas - 26.06.2014

Thank you all very much.
I will learn Java


Re: Java or C++ ? - player94 - 26.06.2014

Java


Re: Java or C++ ? - DiGiTaL_AnGeL - 26.06.2014

C++, you will find it easier to learn, if you walready know pawn for real.


Re: Java or C++ ? - thefatshizms - 26.06.2014

Quote:
Originally Posted by DiGiTaL_AnGeL
Посмотреть сообщение
C++, you will find it easier to learn, if you walready know pawn for real.
PAWN has a C-like syntax so it would be easier to learn C, not C++.


Re: Java or C++ ? - victorcast - 27.06.2014

To put this in aerospace terms.

Learning C++ as the first language is like putting you alone in the cockpit of a Space Shuttle just as you begin the re-entry manuevers and calling it a "trainning mission".

Learning Java as the first language is putting you in the co-pilot chair of a personal plane in control of a seasoned instructor who will slap your hand should you try and do something inordinately stupid.