Welcome Guest ( Log In | Register )



2 Pages V  < 1 2  
Reply to this topicStart new topic
> What Are The Advantages Of Java Vs C++?
thermoid
post Mar 30 2005, 07:41 AM
Post #11


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 38
Joined: 19-March 05
From: Chicago, IL
Member No.: 3,110



In short...stick with C++ unless you need cross-platform usability and don't need anything complex.
Go to the top of the page
 
+Quote Post
afrothunder
post Apr 4 2005, 03:27 AM
Post #12


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 1
Joined: 4-April 05
Member No.: 3,604



i know people have already posted alot on this, but here'e my 2 cents.

java is easy. there are a HUGE number of libraries that sun and other people have provided. No matter what you are trying to accomplish, if you look hard enough, you'll find that someone has already written a function to do it for you. In C++, there are quite a few default libraries, but you deal with alot more in depth coding using system calls and whatnot. THis is even more true if you use C (which I do). Besides this, the syntax for the languages are pretty similar, and each could be written to look like the other. The real difference, as I see it, is the performance. C/C++ has very little abstraction between the program and the operating system, making it very fast. Java, on the other hand, has a virtual machine between it and the OS, which increases portability, but decreases speed immensly. Also, java is an entirely interpreted language, which (very basically) means is compiles each line as it reads it, slowing it down further. In the end, unless you're writing an applet for use on a website, theres no reason to use java if you've got a decent amount of programming skill.

-afrothunder
Go to the top of the page
 
+Quote Post
crackhoarmojo
post Apr 11 2005, 04:52 PM
Post #13


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 6
Joined: 10-April 05
Member No.: 3,831



The whole reason java and C++ are so similar is because java is based on C++. It was acctually made to be used more in web development anyway, something which C++ was lacking. Java cut down on all the memory management and such in order to make web programming easier (try programming the memory managment when you have to think about IE or some other random browser in the mix too....).
Go to the top of the page
 
+Quote Post
slapbass
post Jun 19 2005, 03:28 PM
Post #14


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 12
Joined: 19-June 05
Member No.: 6,383



I'm primarily java programmer, but some years ago I used c++ as my primary programming language.

I can list some(not all) features which are big adventages in java:
1. garbage collector (you don't think about empty pointers)
2. numerous libraries (especially open-source libraries)
3. almost full object programming
4. cross-platform programming and running
5. you can write programs and pay nothing for licences(free IDE, free frameworks etc.)
6. very big community

Go to the top of the page
 
+Quote Post
iGuest
post Jun 28 2008, 06:52 AM
Post #15


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



Replying to qwijibow
I don't think that is correct. In Java you declare a user defined object array as (for example Student class objects)

ArrayList<Student> list = new ArrayList<Student>( );

You don't bother with pointers, you don't have to use a for-loop. That's it!

-reply by Jose
Go to the top of the page
 
+Quote Post
iGuest
post Jul 10 2008, 03:47 PM
Post #16


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



Afrothunder has some excellent points. However, as systems get faster Java's speed in no longer critical issue. If you are new to programming, Java is the perfect language to learn computer concepts. I teach Adnanced Placement Computer Science in high school. I have taught BASIC, Pascal, C++ and now Java to high students. Try teaching students to write game programs for their cell phones with C++ and you will appreciate Java's portability. Everything you need to start programming in Java is free, I repeat FREE. Even the J2ME to create programs for cell phones is free. So far based on my personal experience and from feedback I have received at blogs like this, the majority of negative comments on Java seem to come from C++ programmers who have less than one year serious experience with Java. They are too proud to admit what they don't know or to ask for help!

-reply by Jose
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. java.lang.NullPointException(4)
  2. Using system date in java... How?(5)
  3. Java Unlimited(14)
  4. Array Sorting(21)
  5. Need Help: Find Lowest Character Using Java(7)
  6. Download Java Ebooks(15)
  7. Java By Example(8)
  8. Video Streaming In Web Browser Through Java Or Jsp(1)
  9. Looking For A Java IDE(25)
  10. On Why Java Is 'c'ooler!(10)
  11. Other Sound Format Support(3)
  12. Java Phone Book(2)
  13. How To Create Exe File In Java?(13)
  14. How Do I Test A Java Aplication(11)
  15. Mozilla And Java!(2)
  1. Need To Modify Xml Attribute Using Java(4)
  2. Bluetooth And Java(5)
  3. Java Sdk Vs. Java Jdk?(2)
  4. Graphcal User Interfaces In Java(4)
  5. Java Db Help Pls(2)
  6. Loading 3d Models In Java?(2)
  7. Java Applet Loading Error(5)
  8. Setting Up Java Correctly(8)
  9. Java Java.security.accesscontrolexception(6)
  10. Simple Java Question(3)
  11. Java And Sql: Data Mismatch(6)
  12. Java Memory Leak?(2)
  13. Java Mouse Movement.(2)


 



- Lo-Fi Version Time is now: 5th December 2008 - 02:01 AM