Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Which is better and why ? (https://www.warriorforum.com/programming/410847-better-why.html)

dann12 8th July 2011 06:14 AM

Which is better and why ?
 
I've been told that if you want to be a better programmer c++ or JAVA. Now I'm not able to decide which one to start !
As I don't know which is better.
So, anyone can help me in this regard ?

amans54 8th July 2011 07:26 AM

Re: Which is better and why ?
 
HI,
Both languages have there merits and demerits.In my opinion c++ is the best option because i think all programmers should know the working knowledge of c++.But also java is important so in my opinion the good programmer should have a command over at least two language

lowriderSTi 8th July 2011 08:14 AM

Re: Which is better and why ?
 
both are very important...but if I were you, I'd go for java.

RonnyRaygun 8th July 2011 11:42 AM

Re: Which is better and why ?
 
I think java has broader support than c++ Go with Java.

nthmarketing 8th July 2011 12:26 PM

Re: Which is better and why ?
 
This will be a long response :)

Java was derived from C++

Java and C++ syntax is very similar. For instance a stack interface in Java may look like this.
public interface Stack
{
public void Push(Object o);
public Object Pop();
};
And C++
class Stack
{
public:
virtual void Push(Object&) = 0;
virtual Object& Pop() = 0;
};

Either language will help you if you wanted to understand the other. Java will be easier to learn. Google did a benchmark recently and showed that C++ was faster than Java by "a large margin" if you like reading :)

So... If I were to learn one language I think you can't go wrong with either but Java will be easier and C++ will give you a broader basis for programming.

My 2 Cents,
Fred

andrewjustice03 8th July 2011 04:11 PM

Re: Which is better and why ?
 
C++
Not only it teaches you the very essential to programming. The applications, classes, library, or whatever coded on C++ is fast. For it is near the Kernel of the OS, meaning, it has only need to pass a single interpretation of code to be executed. Unlike Java that it needs a Virtual Machine to be executed.

Java (high-level)
-----------------
C++ (mid-level)
-----------------
Kernel or Assembly (low-level)

During my early days of learning programming, C++ has no good IDE (I used Borland C++), unlike Java (I used Netbeans and Eclipse). But now, you've got many choices (Visual C++, Eclipse CDT, etc) thus, coding will be more easy.

One thing, C++ is not dead as many may think. C++ will have an update one of these days :)

ytntr 9th July 2011 01:02 AM

Re: Which is better and why ?
 
Hope both are good


if im wrong correct me

yrnbk 9th July 2011 05:12 AM

Re: Which is better and why ?
 
Both are best. Both have their importance

Iden Halburt 9th July 2011 12:46 PM

Re: Which is better and why ?
 
Both are good they just differ from eachother. It just depends on what you want to get done. One thing to keep in mind that andrewjustice03 already said is that Java is a High-Level programming language and C++ a Mid-Level.

The Mid-Level of C++ means that you are closer to the actual PC and thus have more control over the memory used. This makes programs that are (correctly) written in C++ a lot faster. The drawback of this is that C++ is way more code-intensive. Writing a program in C++ will take up way more time than writing a program in Java.

These days most computers don't need an optimized application to run smoothly as they are strong enough to run it anyway.

Hope this helped a little,

Iden

chazzpalterino 9th July 2011 06:12 PM

Re: Which is better and why ?
 
Quote:

Originally Posted by dann12 (Post 4219312)
I've been told that if you want to be a better programmer c++ or JAVA.

What do you plan to accomplish with the programs you intend on writing? C++ is a low-level compiled language generally used for complex computing tasks only ... you do the memory management and garbage collection yourself, which in Java you do not.

Java and C++ are fundamentally different. C++ is used for writing programs you compile into native binaries that run on a set platform. Java does not create truly 'compiled code' but creates byte-code instead, and runs it on a byte-code interpreter, which is another software program. With C++ there is no intermediary. This is why the same compiled Java can run without modification on Linux, Windows and Mac.

I'm not sure how you really expect anyone to help you on your decision here. If you don't understand how Java and C++ are so different, and know which one you plan on using, you should start with something simpler.

Just my 2c

dann12 10th July 2011 05:10 AM

Re: Which is better and why ?
 
Got it.. C++ is relatively low level to JAVA.
Can anyone tell me the merits of c++ over JAVA and vice-versa ?
on the basis of which will run faster, efficient, etc..

silvertower03 10th July 2011 07:55 PM

Re: Which is better and why ?
 
Java and C++ are both object oriented programming languages. Software applications are developed using these applications. Applications based on E-commerce are developed using Java language while C++ language is used towards development of system software ;)

ngseosept 10th July 2011 09:36 PM

Re: Which is better and why ?
 
Both are good, but i can say that Java is better one :) Goodluck :)

theme 11th July 2011 01:27 AM

Re: Which is better and why ?
 
Hi,

Start directly Wordpress , then you will learn php,jquery,xhtml and css.

No alternative to WordPress can be found in the universe. We love it.

Rizimar 11th July 2011 10:29 AM

Re: Which is better and why ?
 
If you're doing web development or cross-platform programming, go with Java. If you are doing a platform-specific application, C++ all the way.

myeanne 11th July 2011 01:44 PM

Re: Which is better and why ?
 
I would suggest to learn both language, you can use them for different projects and purposes.

nthmarketing 11th July 2011 03:57 PM

Re: Which is better and why ?
 
Quote:

Originally Posted by theme (Post 4235915)
Hi,

Start directly Wordpress , then you will learn php,jquery,xhtml and css.

No alternative to WordPress can be found in the universe. We love it.

Wordpress is good for what it was made for and application development isn't one of those things.

ussher 11th July 2011 07:02 PM

Re: Which is better and why ?
 
Java.

Anything you write will run on windows, mac and linux.

Mikey Lightning 11th July 2011 07:09 PM

Re: Which is better and why ?
 
Java all the way man! Good luck.

dann12 14th July 2011 10:55 PM

Re: Which is better and why ?
 
Quote:

Originally Posted by theme (Post 4235915)
Hi,

Start directly Wordpress , then you will learn php,jquery,xhtml and css.

No alternative to WordPress can be found in the universe. We love it.


I don't want the web designing languages.. :). As I'm searching for programming languages so that I can develop something after I understand it thoroughly !

Ken Durham 14th July 2011 11:24 PM

Re: Which is better and why ?
 
C++ will let you get to the meat of things, and as mentioned, once you learn what "programming" is, all of the other "languages" will come easily.

AdWorkMedia 15th July 2011 02:32 AM

Re: Which is better and why ?
 
What programs are you trying to make with these languages? If you are learning a language I would really recommend starting with PHP since you can find a lot of resources/help online and may find it easier to code than Java or C++. You can still apply what you learn from PHP to those languages later on.

ppsk007 15th July 2011 04:47 AM

Re: Which is better and why ?
 
Java is Better

Its is Multi threaded programming Language

maxmalini 15th July 2011 07:16 AM

Re: Which is better and why ?
 
I'm going to say that both are important, but if you are looking towards web programming, then Java is what you want.

John Emdat 16th July 2011 03:18 AM

Re: Which is better and why ?
 
Both are important & good also, I guess!

wilsonmarcial 23rd August 2014 01:27 AM

Re: Which is better and why ?
 
Both Java and C++ are good..
  • C++ was designed for systems and applications programming , extending the C programming language
  • Java is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as possible. It relies on a java virtual machine to be secure and highly portable
  • Java is a true and complete object oriented language
  • C++ is an extension of C with Object oriented behaviour.C
  • C++ is not a complete object orientd language as that of java
  • Java does not provide template classes
  • C++ offers template classes
  • Java supports multiple inheritance using interface
  • C++ achieves multiple inheritance by permitting classes to inherit from multiple classes
  • Java does not provide global variables
  • Global variables can be declared in c++
  • Java does not support pointers
  • C++ support pointers

onconference 28th August 2014 02:16 PM

Re: Which is better and why ?
 
Neither is better they both have some advantages but neither its really better... I would learn Java first then c++

jameslopez 13th September 2014 02:49 AM

Re: Which is better and why ?
 
i think java is better compare to others

Member8200 29th September 2014 10:51 PM

Re: Which is better and why ?
 
Java is better. But most of the concept of java are drew from C++. Java is platform and machine independent, it runs regardless of what OS you are working with.

Go with Java.


All times are GMT -6. The time now is 07:30 AM.