Choosing Java or C++


 
Thread Tools Search this Thread
Top Forums Programming Choosing Java or C++
# 1  
Old 06-06-2003
Lightbulb Choosing Java or C++

Listen, if you know a bit of programming in C and need to program unix-type operating systems the next transitive stage is for sure C++. However, have in mind that Java is like learning C but 99% object-oriented(o.o.) and with no pointers or memory-management tricks. It would be good for you to see and from this direction. Afterall, if you are interested in o.o. Java is for you.
In the end is what you really need most or interested in.
Just enjoy !!!Smilie
# 2  
Old 06-06-2003
Why Java???

C++ is more flexible, more richable programming language (Java hasn't multiple inheritance or templates, etc)

Yes, Java is almost platform independent, but as consequence very slow. Java also badly supports another languages (it's difficult to use code writing in another language), etc.

May be, if you programming in the Unix enviroment, use C++, and .Net in Microsoft application?
# 3  
Old 06-09-2003
Reply to your reply

Firstly, let me assure you that Java is more flexible than C++ concerning your points. You can have multiple inheritance by the use of interfaces, inner classes and abstract classes.

You must also know that a deadly diamond of death is better handled in Java than C++(In C++ you use function calls whereas in Java you use inherited interfaces). Thus, you dont interfere with the object-oriented model.

Also, know that in the following months the new java version will include a more wide version of the C++ templates, generics with which you can have templates. Moreover, you must understand that the game of which language is faster is being heard before.

But know that, you can have Java-code even faster than C++ using static blocks of code and a very fast JVM like hotSpot. Of course, in certain cases only. As i said C++ is only in 30% o.o..

Furthermore, know that Java has about more than 5000 classes enriching its very professional application environment whereas C++ hasnt got any standard libraries except from io streams and stl.

Lastly when you say that java badly supports other languages i dont know if you tried JNI(Java Native Interface) or not. You can have JNI-code using C++ or C function calls or even inside a C++ funtion to have a construction of a JVM use java code and then destroy it.

Know also, that all the scripting languages(and i mean all!!!) can be simulated in java native code.

At the end, i dont understand your last question. If you mean what i use for programming then let me tell you that i use both languages in both unix and microsoft applications.


LET ME ASSURE YOU i dont try to compare the two languages. That would be irresponsible from my part since both languages are used where they better fit. I just try to answer your questions.

Im really interested in your reply!!!Smilie
# 4  
Old 06-11-2003
Hammer & Screwdriver

Firstly, allow me to make one's apologies for my preceding message.
It's only my opinion, about Java. Also I'm not enough aware about Java. Nevertheless I think that on the whole, C++ -programms is more qualitative, although in this case developing process is more long.
Smilie

It's absurd to argue Smilie

But only one question to you.
As you write code for Microsoft platform, are you used .Net platform?

I'm really interest about your comparison Java against .Net (C# for example as preffered language)
# 5  
Old 06-13-2003
.Net and Sun ONE Studio CE

In regard of your question in microsoft platform i use for developing c#, visual studio 6.0 since i was firstly involved with the lanuguage using this development tool. However, as far as .Net is concerned, we use it in the university's windows labs.

Although, ive heard positive attitudes towards the tool, i dont find it very user friendly, especially when i try to make exe files from imported C code files from lan sources. Of course, i havent really use it long so im not the right person to be asked about it.

As far as its other utilities are concerced i didnt have time to explore them yet.

At the time being, ive started using the Borland compiler which seems stable enough.

Of course, as far as Java is concerned i use the sunONEstudio Community Edition in both microsoft and linux platforms. Of course, for the specific tool you need a lot ( i mean a lot !) of memory.

If i understood right from your last question you are asking me to compare sunONEstudio with .Net. Since, i dont really know the .Net i cant be sure what to tell you. I can assure you that the sunONEstuido CE is a very powerful tool. You can even hack from it using the socket API(has to do with programming servers - clients and establishing remote connection). The .Net is not my kind, and i dont know its fields of development.
Smilie

Smilie
# 6  
Old 06-15-2003
Thanks!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Help choosing distro

Hi, I just ordered an Skylake NUC and will run Linux on it. My distro of choice has been Ubuntu but I am fed up with the release cycle and would like more of a rolling release. I would say I am an intermediate level Linux user. It's going to be a HTPC, I want to have the latest kernels... (0 Replies)
Discussion started by: rthorntn
0 Replies

2. Linux

Choosing a UNIX

i have a project in numerical calculus in c language what unix i get better for this? (7 Replies)
Discussion started by: gitac
7 Replies

3. Red Hat

Choosing best location for authorized_keys!

Hello Friends, I am trying to troubleshoot one scenario for the customer. In their server configuration, each vhost has it's own user. The option is to shell access chrooted. The question is where would be the best place to store the authorized_keys file so that we can ssh in from the... (0 Replies)
Discussion started by: user3528
0 Replies

4. Shell Programming and Scripting

Dynamically choosing the interpreter

Hi, Is it possible to choose the inerpreter conditionally. For example, if whereis bash returns /usr/bin/bash then i need to choose #!/usr/bin/bash else i need to use #!/usr/bin/sh. Is it possible to achieve in a shell script? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

5. Cybersecurity

Choosing the right distro, Locked down from within.

I'm looking to put a box at a client site which will be connected to the client's home router for internet. That box will have remote access software on it and will have untrustworthy contractors logging in and using the browser. So, I'm looking for a distro that would be LOCKED DOWN to the max... (1 Reply)
Discussion started by: artranc3
1 Replies

6. Slackware

Help for choosing Slackware

Dear Friends, If I use Slackware for learning whether it will make any confusion in administering/using Redhat and SuSE since I have checked slackware is more like BSD. Thank you. (4 Replies)
Discussion started by: Tlogine
4 Replies

7. Linux

Choosing the best distro.

Hi all Help me find the best distro for the following configurations: Intel pentium IV 1.6 Ghz 128 MB RAM :( 40 GB Hardisk with one very big partition more than 35 gb n another 2 gb partition. windows xp is already installed but has enough free space (26gb). Which linux will be... (0 Replies)
Discussion started by: bbala
0 Replies

8. UNIX for Dummies Questions & Answers

I need help choosing a linux.

There are soo many flavors of linux and i just cant choose/find the right linux for me... I am hopeing for a linux that is a Workhorse Can fit of a seires (or 1) disk(s) Lots of features (admin/mod features) A learning mode or a detailed tutorial Can work side by side with windows... (12 Replies)
Discussion started by: lithuaniaakid
12 Replies

9. UNIX for Dummies Questions & Answers

Choosing a version

I know that the rules say no school questions but I am in advanced topics and am going to go to college for programming and I want to find a easy first OS to start me out, please help, thanks (3 Replies)
Discussion started by: KoKo
3 Replies

10. UNIX for Dummies Questions & Answers

Need help in choosing Unix Platform.

I'm a completely noob to Unix. I have previously managed quite well Windows OS's but never Unix. -My question is quite simple: I've been investigating what's the easiest and most complex Unix OS. However, it seems there are quite a couple of OS's from which to choose, like: -Darwin ... (3 Replies)
Discussion started by: justanoob
3 Replies
Login or Register to Ask a Question