Why learn Java Instead of C++ or...

Why should people learn Java and use Java than C++ or other programming languages?
Some of my personal reasons are:
1. Java supports four look and feels without having to create them from scratch, they are already available for quick use.
2. Java compiles fast, and runs fast. It's easy to understand. You can *.jar it into one file! No *.dll's!!!

I like Java too (duh!), but...
Why should people learn Java and use Java than C++ or
other programming languages?
Some of my personal reasons are:
1. Java supports four look and feels without having
to create them from scratch, they are already
available for quick use.
What? how is that an advantage over much of anything? OK, you could say that you can write a very complex GUI application and have it run on a number of very different applications using a common L&F or a platform-appropriate L&F.
2. Java compiles fast, and runs fast. It's easy to
understand. You can *.jar it into one file! No
*.dll's!!!Before there were .DLL's and .so's there were big-ass executable files with everything linked into them. Oh wait, you can still do that on Win32 and Unix if you want to (except of course for the OS shared libraries which Java's JRE needs too).
Chuck

Similar Messages

  • Why learn Java now?

    I'm new to Java programming and have developed some small demo classes.
    I have exp with other Visual languages and I feel like I'm taking a step back in time writing code in Notepad and compiling and running from dos etc.
    I have several classes and lots of code lines to do a simple thing in swing like create a frame and a simple menu panel.
    I thought Java required less code but so far it requires 3 times an much as other languages!
    What visual tools or IDE�s exist for Java development other than Sun ONE Studio?
    Why learn java now? The number of jobs posted online seams to be higher for Java that any other language out there like vb.net, C++ etc.
    Any Comments of the Future of Java Jobs?
    Running Java:
    My apps run slow on XP, 384M ram.
    Do production Java applications suffer from slow execution of the JVM layer?

    Java code is easier to understand and more stable than "faster" languages. There is more flexibility and extensibility than in other languages, and the error-processing system is quite advanced. There are also very powerful tools you can use out-of-the-box, like JOptionPane:
    import javax.swing.*;
    public class Foo
        public static void main(String[] args)
            String pass = JOptionPane.showInputDialog(null, "Please enter your password");
            System.out.println("Password="+pass);
    Also see javax.swing.JColorChooser.
    -Tim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why learn Java if you know ColdFusion?

    ColdFusion is awesome for my work. I can make anything I want with it and seeing as 99% of my work is making web applications, I haven't needed to look elsewhere.
    I was just wondering why anyone would need to learn Java, if you already know ColdFusion... I understand that ColdFusion runs on Java, but is there anything special I could do with Java that is not possible in ColdFusion for use in websites?
    It intrigues me because I have to cover the work of an ASP.NET developer, and when I was looking at his C# code (which looked very similar to Java) it made me cry to think people make websites in this way. Compared to ColdFusion it looks archaic but then I remember that CF works with Java so I thought about looking into learning Java. But is there any advantage to me doing this?

    Correct, but it does depend on the app. I have written some high volume apps in CF only and not had an issue. But my primary work is with developing and maintaining a payment gateway and due to the nature of the application there are a few non-native CF components (both Java and Delphi). The beauty of CF is it's ability to seamlessly mix if you have to. But again, I prefer to keep non-CF dependancies to a minimum.

  • Should I learn JAVA or C#?

    Should I learn JAVA or C#? Or...both of them!?

    For the record, C# does not support multiple
    inheritance. It is very much like Java except that it
    has a few extra goodies thrown in. For my tastes, it
    is not as pure as Java, but it is an improvement over
    C++ and it has a few things, like operator
    overloading, that would look nice in Java. Hey! Wait!
    Stop! Stop the tomatoes! Please!Ugghh, operator overloading. What a nasty nasty thing that was. Why change something you have been seeing since you were in diapers to mean something else. + should alwalys be plus because we have all grown up knowing that. Imagine if you had a child and for the fun of it you taught him growing up that his left hand was his right hand,think of all the confusion he would have when he is learning how to drive and his instructor tells him to take a left. Even though he may learn that what he believes is left is now right he will always first think of his left hand as his right.

  • Unicode String in JFrame's Title Bar / why is java a non-Unicode pgm in XP?

    My big question:
    Why is Java detected as a non-Unicode program by Windows XP?
    I need to do the following before I can write Japanese characters on the JFrame's title bar on Window XP:
    From the Control Panel -> Regional Settings and Languages -> Set the Language for non-Unicode Program to Japanese
    Thanks in advance,
    Noel

    Hi Noel,
    I'm only guessing here, but I suspect this is still the case...
    Under JDK1.3, the title bar produced by a JFrame is provided by the Windows OS, rather than Java itself. You'll find that trying to display foreign characters in a JFrame's title bar on an English Windows system nigh on impossible (you're left with everyone's favourite little rectangles instead). AFAIK, Sun were looking to change this in the future, but I've no idea if they've got there yet.
    Windows XP likely refers to Java as a non-Unicode program because it's looking at the main frame. Because the frame is produced by Windows itself (which last I checked was about as Unicode-compliant as my car is), it holds a different encoding to anything else within Java.
    At least that's my stab in the dark. ;-)
    Ta,
    Martin Hughes

  • How did YOU learn Java?

    Ok, two part question and a bunch of help for this Java newbie:
    1. How did you learn Java? Online tutorials, books, discussions, a game, or a class? Be specific and think back to when you looked at a Java program and went "wtf?"
    2. How do you keep up the new versions and therefore, useless older classes? I am reading the list on JDK 1.4 and just thinking, how could I remember all of this? If I'm used to programming one way, how can I relearn for every version?
    If I could just get some honest answers and opinions, it'd be greatly appreciated, Thanks!

    Get this:
    I originally 'learned' Java from "Java Made Simple" by Peter McBride. "Made Simple" is right: having finished this book, I had no idea that you could design your own classes for use by other classes! All my methods were static, I'd never written a constructor or instantiated one of my own classes, and my applications were all contained in a single class! I had only the vaguest notion of what "object oriented" meant, and I wondered why, for example, you had to say
    Integer x = new Integer(4);
    but not
    int x = new int(4);
    The book was intended, I think, for non-programmers who have been given some free space by their ISP to design a web page, and want to add some v. simple applets for decoration. Beware of books like this if you want to learn Java in a serious way.
    For a more positive tip, I recommend Sun's very own online Java Tutorial. It covers all the key topics thoroughly and clearly, so at the end you have a good understanding of Java (More than just the basics, I'd say). If you want to move on to more advanced topics this tutorial will probably stand you in good stead (I can't be certain as I haven't moved on from here yet myself), but if you don't you will still be able to write good amateur programs.

  • Why is Java better than c#. most people say c# is better

    I have entered forums and end up seeing informations on c# being better than java. Pls can any body tell me what makes java better than c#. This days every one i know is now going c#. They are discoraging me to also go c#.
    i am quite con fussed. The only thing that keeps me to JAVA is platform independence.

    Well, I suppose you can search Google for 'C# vs java' and read an article such as
    http://en.wikipedia.org/wiki/Comparison_of_Java_and_C_Sharp.
    However arguing which is better is best left as an exercise for developers with a lot of experience in both languages rather than those just starting out (If your just starting out, you will not use the advanced features one has over the other).
    I think the market will be evenly split between both languages for quite some time. Ideally, as a professional developer you should know both well so you are more employable. For Java, I suggest getting familiar with The Eclipse IDE since its used by the bulk of Java developers. For C#, I suggest you install Visual Studio Express because its used by the bulk of C# developers (and the express version is free).
    I suggest you first learn one or the other very very well and good coding practices before learning the other language to avoid mixing the two somewhat different coding styles.
    I suggest learning whichever language your friends are using assuming you communicate with them about programming often (so you can help each other). If instead your on your own, I suggest you learn Java. I think you will have an easier time picking up the Object Oriented philosophy than C# because in my opinion Java is more low level coding and C# is more high level coding (ie, the advanced features it can do a lot for you). You should have a good handle on the low level concepts first. In may opinion, once you know Java well, C# is a lot easier to pick up since they are both object oriented and are very similar object oriented languages.

  • About learning java 3d

    hi dear,
    I am doing a java 3d learning website. I need to get some information form 3d learners. Could you help me to answer three questions below? Thank you so much.
    1)Did you have any problem in set up 3d working environment? What are they?
    2) When you learn java 3d which part do you think is the most difficult part?
    3) What information would like to see in a java 3d learn website?

    1) Du have any problem in set up 3d working environment? What are they?
    Done it many times over the last few years, so I don't, but from what I can tell a lot of people don't understand the basic Classpath stuff.
    3) When you learn java 3d which part do you think is the most difficult part?
    Learning to do things the Java3D way seems to throw a lot of people - explaining why you should only update the scene using behaviours, how the scenegraph works and so on would, I think, be very useful to a lot of people.
    Vectors, Matrices and the underlying mathematics would also be very useful, although I don't know they can ever be made simple.
    3) What information would like to see in a java 3d learn website?
    I need to know more about model and animation importing and management, but I'm probably not your typical user.
    I'd find a comprehensive set of links to tutorials would be very helpful too- there are a lot of them around the place, but I've not found anywhere that authoritatively lists all the available tutorials - maybe with a bit of information on what they cover and how up to date they are.

  • I need an opinion guys - Oracle guy learning Java Here.......

    Hi all,
    I was laid off about 6 weeks ago from the consulting firm I worked for for 7 years ....... I did Oracle
    Custom Development using PL/SQL and Oracle Forms/Reports on a Web Apps Server.... this I did for about 2 years. Prior to that I was a COBOL guy with about 20 years experience. I've heard
    that the way of the future in Oracle DB programming will be a transition from PL/SQL to JAVA so
    that's why I'm learning JAVA .
    I have started to teach myself JAVA during my un-employment and am having a great time (although trying to remember the nomenclature is "kindOfHard" ;-) )...
    Once I finish this self-study course (Deitel and Deitel JAVA 2 - How to Program... very good btw)
    I plan on taking the JCP test... I'm about 1/4 thru the book and have been writing 5 of the hardest programs that the book has as exercises at the end of each chapter.
    Has anyone out there ever experienced a transition such as this and is getting the JCP going
    to help me get a JAVA job with little-to-none JAVA programmin Business experience ?????
    I guess I'm a tad down today as I've never been unemployed and getting some opinions from
    the great folks out there sure makes the day go wonderfully.....
    Thanks for letting me ramble on,
    Mike
    Cleveland Ohio

    Hi Mike,
    have a look at :
    http://forum.java.sun.com/thread.jsp?forum=361&thread=234679
    that might give you some hints. I am not certified, did Oracle PL/SQL as well but also C++ so the transition to Java was (fairly) easy. Anyhow best of luck and keep going.
    Phil

  • Learning Java SE 7 / Newbie

    Dear Java Community,
    I'm real life I find that most professional programmers are rather selfish or inpatient personality types, and I'm interested in learning Java, and possibly becoming a good programmer. It's just a personal hobby, and something that's mostly an intellectual pursuit. My question is this, how do you compile a folder filled with Java files ? There are 27 files in this particular folder. Half are .java files. The others are .class files.
    I really want to learn how to program, but as I read all these programming textbooks, they're good (conception-ally speaking), and give you nice gold nuggets of information. But I don't know how to bridge what I want, which what I need to learn, in order to accomplish it. I know that don't become a master overnight, and I guess the question should further be, how long will it take me to actually learn to program Java 7 ?
    How do I compile all these files ? I downloaded the free source code from Planet Source Code, but I think these are rather old programs, and maybe they're not backwards compatible. Since I can't find anyone with enough patience to teach myself, then I'll just have to teach myself. But I learn best through backwards engineering. I need to know why this does that, and why that does this.
    Can someone help ?
    Edited by: user13816154 on Jan 24, 2013 9:10 PM
    Edited by: user13816154 on Jan 24, 2013 9:11 PM

    First of all don't blame all professional programmer.This is not right place for it
    Second this category is spcly for Jdeveloper and ADF. IF you have any question regarding you can put in right category.
    Regarding learning java and becoming master.I wil suggest you to step by step.Don't download free code from some site and execute it.First write small program then gradually raise ur level.Within 2 or 3months you will bw confident about java.
    There are lot of other place you can ask about ur java question

  • Im Trying To Learn Java :o(

    Hey All,
    I have decided to get my mind active and randomly learn Java. I say randomly because i am going to be a student again in IT but i like the kinda 3D side and modelling and nice pictures and flash actionscript lol not all this stuff.
    Anways i would just start by saying that Java offends me massivly, i know something happened with M$ and Sun and ever since then all i have had with the sun download is problem after problem and crashing and all iw as tryin to do was play some Jippii games. This aint a recent problem, it always happens and i must have reformatted xp around 7 times. So i stay away from applets!!!
    Anyways in 2002 when i started learning Flash it was because i seen a site i liked and wanted to do that. The equivelent is kinda like me saying "OK GUYS I HAVE JAVA NOW HOW DO I MAKE DOOM" anyways 2 and a half years later im happy with what i can do and have used alot of different apps and learned alot from 3dsmax to aftereffects etc.
    Anyways my goal out of this whole Java thing is to make a game like one i used to play when i was younger on the Amiga 500. No where has this game and a modern one would be great to play. The graphics suck but the physics were really nice.
    So my questions are:
    1) Java. Ok im going to be honest, i know nothing about Java, i dont even know if it can do what i want and what i really dont want is to spend a while learning this to be stuck with no effects for my game, ie are small particle effects possible in Java? I know Java is pretty slow for a proper language compared to C/C++ but how slow? Can you shift a hundred particles around the screen and still add physics in the background?
    2) Java. The whole thing confuses me massivly. Im not a big posting person as i tend to prefer searching but i dont even know where to begin. I will bite the bullet and say i aint going to have alot of problems with the syntax of the language itself. It all looks kinda how i expect it, obviously i dont mean i aint gonna have problems and lot of them but it is not REALLY alien to me to look at a bit code. At the same time it is. I need to know alot of stuff, things that the 2 ebooks i have just ignored. For example, when i compile something, i thought that meant it compiled to the EXE but infact it turned my "heyworld.java" into a "heyworld.class" file. This just makes no sense to me atall because i HATE command line stuff, i see it as reinventing the wheel so im trying to follow through on first of all netbeans (an that went off almost instantly) and a free one that got my hey world to work (well, class). I need to know if a compiler dont make a exe then whats the class for and what exactly is a class file. You know just stuff like that? Does anyone know i kinda dictionary so to speak? baby talk i mean, so far all i seem to get is explainations with words i dont understand.
    3) How difficult is it to make a 2D game in Java? To make this plainer, i aint having an applet run somewhere, i want a nice downloadable exe. Of course i will need to start at the beginning but i mean to get a ship on the screen with keys to move it and a "cave" roof to crash into, is this going to take a long long long time to get to that stage? You see, as i said before unless after a few days i have a object on screen to work with, i just get too bored to continue. for example "the object of this is to make a red circle move across the screen" REALLY interests me where as "today we are going to make a mock system for a small business user" sends me back to 3Dmax and the lighting i was reading about lol I tend to look at a piece of code and be devestated by its complexity then try and make it make sense over time. Is this possible with Java? It does work for me this, i was picking apart a isometric code in actionscript before i knew what a tween was.
    4) Theres so many different J*** J"EE things floating around that i dont actually know what one i am meant to use? I got 1.4.2 i think but thats all i know. Id like any other things that helped yourselfs start off in Java?
    Sorry to go into a bit detail here, its just that with this degree im starting, it soon branches off into 2 groups. Programmers and Designers. I feel i know the design side well enough to make a comparison but it would be rude to leave this side of the things out and write it off without atleast giving it a shot.
    Thank you very much for your time :o)
    Kind regards,
    Clarky.

    If you want an idea of what's possible with Java, do a google search for "java games" or something like that. I've seen occasional postings of what are supposed to be pretty cool games that have been written in Java, but I'm not into games, so I've never bothered to check 'em out personally.
    As to whether you can do it, well, you'll have to figure that out. Learning Java well enough to create a video game is not a trivial task. I don't just mean the syntax of the language, I mean the many APIs you'll be using, concepts like multithreading and exception handling, good OO principles, etc. Without a good handle on that stuff, your code will quickly turn into a morass that will be difficult to enhance, maintain, or debug.
    I suspect that the code to make a particular graphical event occur will be more verbose and complex in Java than in ActionScript, given that Java is a general purpose language and AS is more geared to GUIs. Nonetheless, I'm sure there are APIs out there (some free, some not) that will provide some higher level constructs than the core APIs to make some of that easier. You'll still be operating in the idiom of a general programming language though.
    There may also be a hybrid solution available--where you use Java to express the game logic and another language to express the graphics. I don't know anything about this kind of stuff though, so that's just speculation.
    You may get more precise advice in the GUI Building forums on http://forum.java.sun.com/ than here.
    Here are some resources to get you started on Java in general.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • For all the newbies who wants to learn Java

    I was a newbie like 4 months ago. i have some skills of OOP in C++ like 2 years back but since then i did'nt took any of programming language courses. I have experience in MSaccess and MYsql. i did my internship Last summer with Tennessee Education Lottery as a Database Analyst. At that time i realized what a Corporate Enviorment looks like. Trust me it was a formal interview and i passed it and they placed me in the IT department to write some scripts for the GUI terminal and at the same time create a Company Security Database. i did completed my project but i had to Learn Mysql. and then i realized Java was getting very popular. alot of people told me in the forums to go Java tutorial but i will not agree to start from the sun tutorial. you can do it only if you have a good or may be medium experience of OOP. it was really tough for me and then this magic guy came on the forum and told me to go on this website if you want to learn Java.
    http://chortle.ccsu.edu/java5/cs151java.html
    This site is a brilliant site specially the exercise problems and the quizes really attracted me to Java alot and now i came to realize how easy it is to program in Java rather than C++. Java forums have helped me alot in solving those exercise problems (not with the code but with a good explanation) which was very helpful for me. out of my 210 post i guess i have helped 30 people out and the rest of the questions are regarding those exercises. i came to know encapsulation, inheritance and all that stuff. though i am still not very perfect like i am still having trouble with ComparTo thing but it takes more practice. the more you practice the more you learn. so all the newbies if you really want to learn java even if you dont have any experience in OOp this is the site where you need to start. Hope this will definitely help you alot. thanks to all the Senior members navycoder, captain, paulcw, duffy, turingpest and others also who have helped me in the past. without you i would have not achieved the goal of learning java. now my next step is going to be learn GUI programming Swing. looks fun to me. but at the same time i have my final project for this semester to make on ONline Testing program which will have a database, php scripting and html and xml.
    I will post if i have any problems

    I was a newbie like 4 months ago. i have some skills
    of OOP in C++ like 2 years back but since then i
    did'nt took any of programming language courses. I
    have experience in MSaccess and MYsql. i did my
    internship Last summer with Tennessee Education
    Lottery as a Database Analyst. At that time i
    realized what a Corporate Enviorment looks like.
    Trust me it was a formal interview and i passed it
    and they placed me in the IT department to write some
    scripts for the GUI terminal and at the same time
    create a Company Security Database.Wow they really must like to gamble if they put you in charge of a security database - no offense meant, but that isn't the sort of thing you would want a brand new person working on, unless of course they were giving really high odds ;-)

  • Learning Java proxies - landscape question

    Hi guys,
    I could use a little help to learn Java Proxies, I'm just starting to get familiar with Java, I'm coming from the ABAP side.
    First and foremost what do I need from the system point view?
    We have an XI box and using file/FTP/IDoc adapters and also ABAP Proxies, I wrote some Java (mapping)functions, I am familiar with these.
    But for a Java proxy, I would need a separate Java server(?) to run the application on, is this correct?
    Can I use my own PC for this? (for learning purposes), I have NWDS installed on my PC.
    What are the steps to write a small simple Java Proxy.
    I would very much appreciate some help, guys, how do I start?
    Thanks a lot,
    Viktor

    Hi Viktor,
    You can work from your own machine. Becuase in Java Proxy scenarios, you are deploying EAR files in the XI server, and thru XI , you are executing the method written in the Java Application.
    Just check these links-
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    Demo ~
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken]
    Hope this helps,
    Regards,
    Moorthy

  • Why does Java Application not working with Macromedia Flash 5 or MX?

    Why does Java Application not working with Macromedia Flash 5 or MX?

    Who says they don't?
    Although I don't know much about those I'd think they should be able to talk to Java Aps using Sockets or request Servlets ...
    Spieler

  • Why is Java update asking me to install openoffice?

    I have installed Java jdk 1.6.
    Now the update notification is asking me if I want to install openoffice.
    I am not interested in that kind of notifications. (By the way I already have installed open office)
    There needs to be a differentiation between java updates and other updates (3th party tools). Then I can switch off that kind of notifications.
    I am only interested in Java updates.
    Why is Java update asking me to install openoffice?
    Thanks and regards,
    Cees

    It's probably asking you to update to iOS 8.2, which includes support for the upcoming Apple Watch.

Maybe you are looking for

  • TS1538 My iPhone 5s is not recognized in iTunes for Windows

    Last night I downloaded the latest version of iTunes and since that time I have been unable to sync my phone with my HP computer.  I have tried all suggestions in the help section and it still will not sync.  What should I do next?

  • How to calculate the sum of multiple columns and enter it into a single col

    I have a table tab_contributions which has the following columns: Emp_code Current_month(format: yyyymm) Contribution_amt Sample entry: Emp_code Current_month Contribution_amt 100 200910 100 100 200911 100 100 200912 100 100 200912 100 100 201001 100

  • Should user_table be used in stored procedure.

    Hi, i want to find my permanent table in user_tables and then drop and recreate it, can i use this user_tables in my stored procedure for above purpose or is there any view which should be used. sp is admin sp , used to run offline. yorus sincerely E

  • Calling Web Service with Flex 3.0 from WAS 6.40 and WAS 7.0

    I have followed Axel Kratel's tutorial from "How to Develop Flex Applications that Invoke Web Services" and tested it against a WAS 6.40 and a WAS 7.00. In both cases, I get in the fault handler: faultCode="Channel.Security.Error". Could you tell for

  • Re Doc Reversal

    Hi friends We can reverse the gl document through fb08, i want to know how to reverse the document of posting type RV, RE like any document other than SA. thanks and regards srinivas