|
J UNIT (m)
|
which is better to work with.
|
|
|
|
|
|
SayoMarvel (m)
|
Java is better. I've started working on c++ and even the way the language is written is disgusting. Example: C++ cout>>"i am a boy"; JAVA System.out.println("I am a boy");
which is easier to memorize?
Java supports multi-threading in its standard libraries while c++ does not (though you can do that with some third-party libraries).
Talk of the GUI toolkits, plugable look and feel, e.t.c. Talk of mobile application develoment, distributed softwares, java made it easier. I can say it any where that JAVA is better than C++.
|
|
|
|
|
|
SayoMarvel (m)
|
let me not forget to tell u that u shuldn't have added that useless high resolution picture because it made the page slower.
|
|
|
|
|
|
candylips (m)
|
It depends on what you are trying to do. All languagues have their advantages and disadvantages
|
|
|
|
|
|
ETL_Dude
|
I concur with Sandylips, Depends on what you hope to achieve and how , Also, existing applications will play a big role, after all said and done, all applications have their pros and cons, SayoMarvel , a lot more constructive criticism would do and less vitriolic statements would suit our eyes,  cheers,
|
|
|
|
|
|
ThePhantom (m)
|
I agree with candylips. It depends on what you are trying to develop. I like using Java for web base applets and I use C++ for desktop programs.
|
|
|
|
|
|
Dual Core
|
i see programming languages as different roads leading to one jungle. i can say i love the java lang cUz that's what i waz brought up with, but dude, i go where the money goes its all about rapid app development. so if java gets me there first, java be it. if c++ will get me there first, c++ be it. nothing new in all languages, once u can use one OO language i think u can use other OO languages all ya need is getting the methods/functions and their corresponding syntax and implementation.
but all plus all, much respect to Java.
|
|
|
|
|
|
kambo (m)
|
i'd advice u stick with C++ rather than java,the complexity u'll overcome will aid u in mastering other languages. java is simpler, bECAUSE IT HIDES SO MUCH from than C++ would care. to . C++ lets u see things as they are, and gives so many options that when u through with learning it and when u master it,u'd be more versatile. infact u'd be worth 2 java programmers any day. look at this. java says // System.out.println --- u type 18 character before u print any thing on the other hand C says, cout --- 4 character. if your writing a large program that will require 300 print outs, u'd appreciate writing 'cout' than the long 'System.out.println' , java is bloated. why? because it is trying to SHEILD u from complexity, and in the process it makes u too ignorant of what's really going on .C++ will not sheild u too much so u REALLY know the machine .the choice is urs. simplicity that leaves u 80% more ignorant while u call yourself a programmer or learning the nitty gritty the hard way and being in your league. besides C++ is the OOP language for systems programming ,the other option is C, and ADA but ada isnt so popular, with C++ u can write OS code and embedded systems. go for the best ,go for C++.
|
|
|
|
|
|
kambo (m)
|
i'd advice u stick with C++ rather than java,the complexity u'll overcome will aid u in mastering other languages. java is simpler, bECAUSE IT HIDES SO MUCH from than C++ would care. to . C++ lets u see things as they are, and gives so many options that when u through with learning it and when u master it,u'd be more versatile. infact u'd be worth 2 java programmers any day. look at this. java says // System.out.println --- u type 18 character before u print any thing on the other hand C says, cout --- 4 character. if your writing a large program that will require 300 print outs, u'd appreciate writing 'cout' than the long 'System.out.println' , java is bloated. why? because it is trying to SHEILD u from complexity, and in the process it makes u too ignorant of what's really going on .C++ will not sheild u too much so u REALLY know the machine .the choice is urs. simplicity that leaves u 80% more ignorant while u call yourself a programmer or learning the nitty gritty the hard way and being in your league. besides C++ is the OOP language for systems programming ,the other option is C, and ADA but ada isnt so popular, with C++ u can write OS code and embedded systems. go for the best ,go for C++.
|
|
|
|
|
|
J UNIT (m)
|
C++ HAS IT'S ADVANTAGES BUT EVERYONE KNOWS JAVA IS EASIER TO WORK WITH, MORE UNDERSTANDABLE, AND USER FRIENDLY, YOU DONT NEED TO GO TO SCHOOL TO LEARN HOW JAVA WORKS, OR WHAT DO YOU GUYS THINK.
|
|
|
|
|
|
hollandis
|
A Beginner should start with C++ ,one is bound to be discouraged ,if one commences with java
|
|
|
|
|
|
Olumide7 (m)
|
A beginner should actually start with Turbo or Qbasic, C++ will break your bone if u attempt to go onto it directly. Any ways it depends on the level of expertise you want to reach, if u want to be a big time programmer u have to start with foundational programming languages. On the question on which one is better, I go for Java though I can work comfortably with both, but Java has some interesting features that will make one hate C++ like Java's automatic garbage collection, platform independence and my personal favourite, the ease of creating GUI's.
|
|
|
|
|
|
candylips (m)
|
Near-limitless flexibility is great in theory, but in practice it tends to lead to maddeningly obscure bugs and code that is a nightmare to maintain and re-use. It doesn't help that C++'s reputation as the language of choice for uber-geeks has cultivated a conventional "cool" coding style that tends towards the willfully convoluted and obscure. It is telling that some of the most useful and highly-regarded C++ books (Scott Meyers' "Effective C++" is a great example) devote a lot of space to discussion of how seemingly straightforward language features are actually deathtraps for the unwary. Most of the "limitations" in Java were put there deliberately by Gosling to make Java simpler, cleaner and less error-prone than C++. Read this http://java.sun.com/docs/white/langenv/Simple.doc2.html#4076 of the Sun "Java Language Environment" white paper if you want the details.
|
|
|
|
|
|
J UNIT (m)
|
java has bo enums, that's one advantage c++ has over java, but enum's don't matter, i stil think java is better to work with.
|
|
|
|
|
|
|
|
Ghenghis (m)
|
@kambo
1) Java now has static imports so your statement is wrong 2)cout belongs in the std namespace so could qualify it as std::cout
I personally prefer Java cause its simpler and as such you can develop apps faster, but i also recognize that i can't for instance use Java in real time scenario (where deterministic processing is required)
I don't think the C++ complexity is there 'cause Bjarne intended it to be so, its there because of compromise hence you have references,pointers,normal values. Newer languages tend to be cleaner than their ancestors, so Java borrowed a lot form C++(syntax wise).
And the man talking about GUI , have you heard of MFC,BWT, GTK, WxWindows etc ,
Unfortunately java left out some key concepts in programming for safety, i don't think C++ is ideal for starters C is better then Java(i hate to say this , C#)
note they are all descended from the great language C
|
|
|
|
|
|
adewaleafolabi (m)
|
Maybe i'll give C a shot certainly not C# i ain't into microsoft no more. Any recommendations on where to learn?
|
|
|
|
|
|
na2day? (m)
|
it depends on the project at hand. there are tones of things u can use "C" that java wont be appropriate to use. "C" is alot harder though, thats why i stick with C++ only, alot easier and i remember my commands in C++ than i do in java.
|
|
|
|
|
|
javalove (m)
|
Hmmm, an interesting discussion. Java has its advantages and so does C++. Who says C++ is difficult, take that back boi, Java is easier to learn and u write less codes and get more done ina little time. C++ on the other hand is also a very very powerful language and good too. If u create desktop applications with C++, u don't have to worry about virtual machine or all that stuff but it still depends on what u hope to achieve.
But guy, java is sick, ill and a very powerful language too, its java alld way
|
|
|
|
|
|
J UNIT (m)
|
i speak java, i eat java i breathe java, java is my life.
|
|
|
|
|
|
echowords (m)
|
where is the money??
|
|
|
|
|
|
Bassie (m)
|
Java is no doubt "simplier" than C++ in terms of learning curve and usage, but this simplicity does'nt dent it's Power. One of the advantages that C++ has over Java is that of Backwards compatibility(with C )- a major reason for it's complexity.It's all about what gets things done in a shorter time, n i bet u Java Pays when time's a factor. By the Way,If Java is simple, what will we say about C#?
|
|
|
|
|
|
sbucareer (m)
|
James Gosling one of the four founder of Sun MicroSystem was employed by then Sun's OpenWindows user environment was architecting a commercially unsuccessful NeWS windowing system as well as GOSMACS - a C language implementation of GNU EMACS.
He began with C++, but soon after was convinced that C++ was inadequate for this particular project. A new project called the green project. The idea was to come up with a new tool to write a short and better program. The project green was later named Oak, which was the first name of Java.
Later on the project got started and progressive, they wanted to register the project and found that someone else has registered oak.
They were sitting in the cafe in Colorado. In America a common name for cafe is Java. The project was renamed from Oak to Java.
The whole business was that C++ was too complex and takes long to do a simple routine. Java was born to be less complex and short in defining solution, hence the common task were routed into API's
Albeit, many languages have overtaken Java in that aspect like ASP.NET, C#.NET, J#.NET etc. Other language may call this routine, Controls some may call it API's Whatever they call it, the Object oriented programming was first commercialised into application development platform by Sun when they coined Java.
It alleviated the long time taken to develop software and that was the purpose of Java. C++ is a kernel developer’s language; I say this because C++ is closer to Machine language.
The way digital circuitry works is, first you design the Logic GATES, which is the electrical components of a chip or circuit board.
Then, you send instructions to these GATES by using a very Low-level medium like programming language. You can use Assemble Language. The assemble language is very hard to program and it is use for a very short instruction. Imagine designing a web site with an assemble language; it will probably take five years to code and ten years to debug.
Scientist saw the problem and came up with another generation of low-level language like Ada, Pascal, FORTRAN, C and etc. Still people where complaining that the language were too hard to use in solving real life solution. C++, COBOL, VB and etc were introduced to alleviate the problem of their predecessor, but still people moaned. Like you are still moaning today that Java is hard.
Anyway, Java is a predecessor of C++. The possibility is that most platforms you used today is developed in C++. Like UNIX, WINDOWS, JAVA etc. The idea is speed because C++ is not interpreted but it is assembled into a byte-code unlike other languages that are compile into a source-code that will be interpreted by a Virtual Machine sitting somewhere in your computer, this reduce or degrade the speed.
Finally, imagine learning to drive with Peugeot 404 1975 that have not got
1. Power steering 2. ABS (Automatic Breaking System) 3. Air Bag 4. No head restrain 5. No USB for IPOD 6. NO Satellite Navigator
Imagine learning to drive this car, then been giving a Peugeot 605 2008. It will be an easy ride. That is how C++ and Java is. C++ is Peugeot 404 1975 and Java is Peugeot 605 2008.
|
|
|
|
|
|
ebot
|
Java and C++ are two statically typed languages, one derived from the other. IMHO, java is better but C++ is faster. I generally hate statically typed languages, Python, Ruby and Common Lisp are better programming languages.
|
|
|
|
|
|
logica
|
python, ruby, lisp = scripting languages => prototyping.
scripting languages r not suitable 4 real-time, real life applications, @ least not as the basis of the whole app, but may come in handy secondarily 2 enhance the user-experience (e.g javascript).
|
|
|
|
|
|
|
|
c0dec (m)
|
Java and C++ are two statically typed languages, one derived from the other. IMHO, java is better but C++ is faster. I generally hate statically typed languages, Python, Ruby and Common Lisp are better programming languages.
dynamically typed languages are a real pain in the a** to debug
|
|
|
|
|
|
sbucareer (m)
|
Not to disrespect anyone, please. Most post here are read by million Internet users around the globe. Hence, I have gotten emails from many people not related to Naija asking me to come and work or help them with some issues because they saw my post on Nairaland.
My point is, when we render messages in this forum, determine the reader is a newbie and try as much as you can to explain any acronym or programming Jargon, like Static type, dynamic type in correlation to programming.
Newbie, maybe put off by our knowledge forfeiting the idea of free knowledge belongs to the world.
|
|
|
|
|
|
Smart K. (m)
|
I like the topic: "Java or C++". The question is not which one is better.
Java was developed from C++. It depends on what you want to do. You may use any language of preference. But I must point out that the way it would be meaningless, and time-wasting to use assembly language to web app (in the year 2008) so it would be unthoughtful trying to use Java for device drivers.
In fairness, Java is more modern compared to C++ but C# is more modern compared to Java. In fact, new languages (or dervied languages) borrow or leverage on features of their parents and make them better.
So, Java or C++. Whichever. Giving the fact that we don't code machines in this country, I beleive we are nearer to Java, C#, VB, etc since we mostly develop business app.
Good luck.
|
|
|
|
|
|
jennyjatt
|
please do anybody have any info about Aptech or NIIT. i just want to know which is best and which is worth a life career. do they really teach? are there job offers? is it worth the money they are demanding? do Aptech or NIIT students have lots of job opportunities? please help.
|
|
|
|
|
|
logica
|
@sbucareer
i don't quite understand. so if i use an acronym, a newbie cannot ask if he doesn't understand, or simply use google to find out?
let's be frank, programmers r generally autodidacts, & to develop in this area of specialization u have to be one. u have 2 develop the drive 2 learn by yourself. u should not expect 2 be spoon-fed. i may sound harsh on the up and coming programmers, but the earlier they know this the better.
|
|
|
|
|
|