Question:
c++ and java ??? college?
2009-10-25 15:59:14 UTC
when people go to college and get degrees in c++ or java what are the two what does java do why do you need to know it and same question for c++ which one should i learn if i go to college and major in computer science what will i learn ?
Five answers:
AnalProgrammer
2009-10-25 16:33:33 UTC
Computer science is the study not just of computer programming but also how the computer works.



You will learn about the CPU. About binary and binary mathematics.

For programming you may learn a low level programming language. You will then learn other languages on a way that the college decides will help you understand programming.

If the course teaches C++ then you will probably learn C first. This is because the C++ language is based on C. C and C++ are general programming languages that can be put to a variety of different uses from low level programming (Operating systems etc) to high level, business use.



Java programming is important because Java is a platform independent language. A program written in Java will run on any computer without the need to re compile the source. C and C++ will also run on different computers but you have to recompile the source first.



You will also have to learn about data storage and data access methods. This will probably lead to you learning about databases and the languages that are used to access them.



Then there are computer networks. You will learn about the different computer networks and how and why they are created.



I hope this helps.



Have fun.
harvestall
2009-10-25 16:33:17 UTC
If you major in computer science, you'll probably learn both.



Just based on what I've read from other people, it seems to me that Java is better for streamlining productivity. You can make programs faster, and they're easier to maintain. The downside is that Java has some performance limitations (depending on what you're using it for)



C++ on the other hand, is an extremely powerful language. It's fast and it can do a lot of things (they can use it to program robotics). But with that power comes a lot of responsibility. Unlike Java, program memory is not managed automatically, so the programmer has to keep track of that.



If I could go back in time, I would learn C++ rather than java, because I think I would learn a lot more about the lower-level process of the computer and memory.
Jim
2009-10-25 17:01:56 UTC
most of the applications that you run on windows or the mac are written in C, C++, C#, or VB.

this is because they distribute well - they compile to an EXE or other binary appropriate to the OS. that also means you can write an installer easily for it because it is a binary.



C++ is not a fun language to write GUI applications in. it is mainly designed for command-line applications, but typically the OS calls are made available to you, such as all the Win32 calls, or kernel calls, etc, which may include GUI stuff.



java is not like that. applications can be distributed as EXE's, but it requires a 3rd-party program to do it (download one of several tools off the internet), and they probably have to be .jar files in the first place. java is not fun to compile. each project requires a custom batch file. the manual is not laid out well, so it is hard to use.

best to learn Java by buying books on Swing, etc, and making sure the books you buy aren't paperweights (they have real substance and teach you something real and give usable examples).



I didn't take computer science, I took Computer Engineering. that was a combination hardware/software engineering degree. I suppose I should have stuck with computer science maybe, since I am mostly a software guy. that was 10 years ago. today you will likely learn C++ and Java both, since both languages are in demand.



Java is used on web servers (JSP) along with Java clients sometimes to deploy major applications such as yahoo mail.



either Perl or C++ may be used in mission-critical e-commerce apps (perl I would think). C++ is used in programs that require network communication protocols.



I would say tinker with and learn both if you can. both will benefit you in a career. In a job description for a person who writes stepper motor drivers, the person had to write for multiple platforms (windows, linux), and in multiple languages (Java, C, C++).



I thought the extra information might be of interest to you.

the 64-bit c++ mingw compiler is buggy(crashes a lot), but it compiles OK.

the 32-bit C++ mingw compiler works great.

for Java you will need the JDK.
2016-09-22 06:34:17 UTC
Colanth is undoubtedly proper. The key phrase is "Object Oriented Programming." (OOP) As lengthy because the direction is a direction that teaches the basics of OOP then you definately must be good enough. Sure, when you wish to paintings with Java you can ought to be trained the syntax however it is truthfully alot less complicated once you be trained OOP method and algorithms (ways of fixing disorders with math).
2009-10-28 18:05:25 UTC
It would be silly to think just because you go to college, you "learn" programming. Programming cannot be learnt by sitting in a class, it's really learnt on your own and by YOUR curiousity. And you don't get degrees in C++ or degres in Java, you get degrees as a computer/software scientist/engineer.



That's all just paper...your actual worth begins with what you're willing to teach yourself and what you can PROVE that you can do.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...