Learn Java first or start with C?

I am completely new to the programming world. However, I'm an MCP with WinNT experience and have worked in the computer industry (desktop, hardware and various software support) for almost four years.
I want to know if it's actually all right to start learning how to program with Java 2 without any previous programming experience. Plus, would Java 2 be a good place to start? I've taken a fast-paced 5-day crash course at a local State university and actually seemed to understand the concepts and was able to answer the instructors' questions. (What was surprising, and somewhat scary, was that I was able to answer questions that the regular C programmers couldn't seem to answer).
However, I just want to make sure I'm following the right path.
Please advise if you can.
Thanks!
-MB

This is the main reason I'd pick Java to teach a newbie about programming:
It pretty much lets you do anything you can do with C and C++ (short of directly manipulating computer memory) with a syntax that's much simpler and elegant. Java just gives you fewer things to worry about, and yet tests all the important skills a programmer needs.
But it's still possible to write bad Java code. Java has it's own share of bad programming habits.
Grab a good Java book. My favorite is Java in a Nutshell by David Flanagan. It's concise and to the point, which may or may not be the best for someone totally new to programming. Download the Java Development Kit (it's free). And get your hands dirty. Start out with a simple tic-tac-toe program, and go from there. That's the only way to find out if programming is hard or not.
And add the Java Developer Connection to your Internet bookmarks list. It's an invaluable resource for all programmers, new and experienced.
If you have any other questions I'd be more than happy to help.
Juan
[email protected]

Similar Messages

  • Any way to Initialize Java Array to start with 1

    Hi Friends,
    Is there anyway to initialize the java array with starting with 1 instead of normal 0.
    Thanks and Regards.
    JG

    JamesGeorge wrote:
    Hi Jacob,
    Thanks for you time..
    Coding like 1 - n will make everything uneasy, I find in other languages like vbscript,lotusscript it can be done..so just a thought to check in Java too..
    Is there any valid reason for Java/Sun guys to start the arrays,vectors and other collections with 0
    Thanks
    JJShort answer: Java is a C-based language, and C arrays are zero-based so the rest are also zero-based for consistency.
    Long answer: Arrays are implemented as contiguous areas of memory starting from a certain memory address, and loading from a zero-based array implies one less CPU instruction than loading from a one-based array.
    Zero-based:
    - LOAD A, ArrayAddress
    - LOAD B, Index
    - MUL B, ElementSize
    - ADD A, B
    - LOAD (A)
    One-based:
    - LOAD A, ArrayAddress
    - LOAD B, Index
    - ADD B, -1
    - MUL B, ElementSize
    - ADD A, B
    - LOAD (A)

  • JAVA could not start with NON - zero exit code after Config UME

    Dear Expert,
    I found some problem with JAVA. We have been success to install for JAVA.
    We can logon to that. But since we configuration for UME. We found the problem
    with startup JAVA. We can not startup for JAVA. It show for error.
    ====================================
    Error==> The JAVA VM terminated with a non - zero exit code.
    Please see SAP note 943602, section 'J2EE Engine exit codes'
    for additional information and trouble shooting.
    ====================================
    Critical shutdown was invoked. Reason is Core service security failed.
    J2EE Engine can not be started.
    ====================================
    MAC ADDRESS can not be access
    ====================================
    Java framework can not be find .... D:\usr\sap\...\jvm.jsp    ==> can not remember
    Could you analyze for me ? How to solved for this problem ?
    Regards,
    Somkeit

    Somkeit,
    What did you change in UME Configuration? 
    Please look in defaulttrace_# log and paste error here.
    What is exit code ?
    Can you revert back your UME changes and see if system starts or no.
    Thanks,
    Digesh Joshi

  • Write to Text File.vi Output file all but first line start with tab

    The attached PNG shows the code used to build up concatenated strings into a string array for the first four lines, thence to a string Array, to Spreadsheet String.vi and, finally, the use of Write to Text File.vi
    The lower right corner shows the result loaded into a spreadsheet. Note the 3 blank entries marked by a filled red rectangle. Examination of hidden characters shows there is a tab at the beginning of lines 2, 3 and 4.
    There is no tab shown in the code. How do those tabs get there? How do I stop them?
    I have tried with the option "Convert EOL" both on and off with no difference.
    The Help states that an OS-dependent EOL character is appended to each line. I can't imagine the Windows EOL character includes a tab.
    Solved!
    Go to Solution.
    Attachments:
    Tab Mystery.PNG ‏29 KB

    wildcatherder wrote:
    I am still puzzled as to why those additional tabs were added by Array to Spreadsheet String.  I'm holding in my hand a printout of an old LabVIEW 8 program with that construction, which is known to work properly.
    Makes complete sense when you look at your code.  You build a string, including an end-of-line character, and put that string into an array.  Then, when you run it through Array to Spreadsheet String, it puts a tab after every array element, and new line at the end of each row in the array.  The first element of your array contains a new line but Array to Spreadsheet String doesn't know about it; it still inserts a tab between that array element and the next one, giving you the tabs.

  • Report's First Page Start with a specified page number.

    I want that my first page of the report should start by a number whixh i want. Say the PageNo on the first page is 32 and it will proceed as 33, 34, 35 ....so on.
    What to do?

    hello,
    you can modify the starting value for the page number by using the "Page Numbering" property of your page number field. there you can define where you want your page numbers to start.
    regards,
    ph.

  • Find first record starting with most extensive ability

    Hi,
    This question might have been asked before but I don't know how to describe it in the search field.
    There are 3 records with 2 fields (id, name). These records are:
    1,Amsterdam
    2,Amster
    3,Am
    I want to find the record that holds the most possible information:
    searching Amsterdam must return 1; searching Amsterdamned must return 1; searching America must return 3; searching United must return 0 (or null).
    So the logic is to search for the whole string and return the id when found. If not found remove the most right character and search until found or a empty string.
    Since this logic has to be a part of SQL I wonder if there is a smart way (without writing a PL/SQL function) to solve this?
    I'm curious.
    Geert.

    Hi, Geert,
    So you're only interested in strings that start the same way? That is, the fact that 'Amsterdam' and 'United' have the substring 'te' in common doesn't matter, because 'te' comes in the middle of those strings.
    If that's so, you can use LIKE to compare the strings.
    WITH   got_r_num    AS
         SELECT     p.place_name
         ,     a.place_id
         ,     a.place_name     AS a_place_name          -- Not needed, nut may be nice
         ,     RANK () OVER ( PARTITION BY  p.place_name
                               ORDER BY          LENGTH (a.place_name)  DESC
                        )  AS r_num
         FROM          possible_places  p
         LEFT OUTER JOIN      actual_places       a  ON  p.place_name LIKE a.place_name || '%'
    SELECT       place_name
    ,       NVL (place_id, 0)     AS place_id     -- or, if you want NULL, just place_id
    ,       a_place_name                       -- if wanted
    FROM       got_r_num
    WHERE       r_num     = 1
    ORDER BY  place_name
    ;Whenever you have a problem, please post CREATE TABLE and INSERT statments for some sample data, like this:
    CREATE TABLE     actual_places
    (   place_id     NUMBER (6)     PRIMARY KEY
    ,   place_name     VARCHAR2 (20)     
    INSERT INTO actual_places (place_id, place_name) VALUES (1,  'Amsterdam');
    INSERT INTO actual_places (place_id, place_name) VALUES (2,  'Amster');
    INSERT INTO actual_places (place_id, place_name) VALUES (3,  'Am');
    CREATE TABLE     possible_places
    (   place_name     VARCHAR2 (20)     PRIMARY KEY
    INSERT INTO possible_places (place_name) VALUES ('Amsterdam');
    INSERT INTO possible_places (place_name) VALUES ('Amsterdamned');
    INSERT INTO possible_places (place_name) VALUES ('America');
    INSERT INTO possible_places (place_name) VALUES ('United');Also, post the results you want from that data, exactly as you want to see them. The query above produces this output:
    PLACE_NAME             PLACE_ID A_PLACE_NAME
    America                       3 Am
    Amsterdam                     1 Amsterdam
    Amsterdamned                  1 Amsterdam
    United                        0See the forum FAQ {message:id=9360002}

  • Learning Java - What's wrong with my code

    Hi All,
    I'm new to programming and Java. Can someone help me figure out why this code is not working?
    //Code
    import java.io.*;
    public class Greeting     {
    public static void main(String[] args)     {
    String name = "";
    System.out.println("Please Enter your name: ");
    BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
    try     {
         name = dataIn.readLine();
    catch (IOException e) {
         System.out.println("Error getting input");
         if (name == "George"){
         System.out.println("You are not allowed on this system " + name + "!");
         else{
         System.out.println("Hello " + name + "! How are you doing today?");
    //End of code - Compiles fine
    Also someone told me there is a special way to input code in the forum which will make it easier to read but I can't find a button and nothing is mentioned in the FAQ's
    Thanks in advance,
    H

    (name == "George")you have to compare Strings using the equals() method rather than the == operator
    -the code button is just above where you enter text for a post (there's a whole formatting toolbar)
    Edited by: redfalconf35 on Oct 24, 2007 4:01 PM

  • Which program(s) in 2014 should a teenager start with for their first site?

    My 14-year-old daughter wants to make her first website. She is artistic and is familar with Photoshop and makes Youtube videos using iMovie. She has a Bamboo tablet and draws including with Manga Studio.
    Should she start with something like Word Press (or....) and later learn.....
    Dreamweaver? Or Muse? Or both? or...
    I have seen one comment that Dreamweaver is for developers, and Muse for Designers. Then there are the "extras" like Edge Animate.
    Although it is all very exciting, it seems to be a bit hard judging where to start. She intuitively picked up something like iMovie and apart from a bit of Scratch, has never really done anything on coding. Like kids her age, she tends to be intuitive about picking up things like Photoshop. But she would also probably want some "cool" stuff on the website sooner than later.
    Any help much appreciated!
    david1610

    david1610 wrote:
    3. Learn html/css (Jon and osgood) - in what way?
    HTML and css are the base code languages of the web. HTML is the structure (foundation/bones) of a page. It's a fairly simple language to learn...
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>This is a page</title>
    </head>
    <body>Hi there!</body>
    </html>
    The above is  an html page, it could be on any website. The page only says "Hi there", but it's a page and it includes all the necessary pieces that browsers require to render it for the viewer in front of their computer.
    Learning how to add more information to that base skeleton is what I mean. There are tons of tutorial sites, books, you name it that go through the ins and outs of html available all over the place.
    CSS works by styling the html of a page (the bold below)...
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <style>
    body {background-color:red; font-size:30px;}
    </style>
    <title>This is a page</title>
    </head>
    <body>Hi there!</body>
    </html>
    That particular css tells the browser to make the page's background red and the "Hi there" text 30 pixels tall. There's tons of different ways to affect every single piece of html using css. Learning how css interacts with html is a huge part of web design.
    A couple of good "basics" tutorials...
    HTML: http://www.w3schools.com/html
    CSS: http://www.w3schools.com/css

  • Is it worth to start learning Java

    Today I saw a post in JavaRanch (http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=33&t=017317). A guy asked a question for his friend about STARTING to learn Java NOW. Actually, I heard quite same question from people around myself.
    For myself, I've been working on Java more than 7 years(already SCEA, hehe). However, the Java passion is getting away ;-((, I am looking around for other stuff like Ruby.
    I have same confusion as that guy, and I'd like to learn from you guys for same question - for the current market situation, it is late/okay to touch Java?

    thank for all the input.
    my concerns are, particularly for newcomer, the
    learning curve and the market trend.
    my understanding is Java is losing its powder in web
    application development comparing with other emerging
    language like Ruby/Python, conversely, Java's powser
    is going to server side(business/integration layer).Don't be so sure about that.
    Java's not losing powder [sic] in web app development. It's mature and considered a standard for enterprise scale problems. Ruby and Python are gaining traction for smaller CRUD-like Web apps, but neither is up to snuff in the areas of security and transactions. Ruby is gaining popularity because of Rails, which makes creating simpler web apps easy.
    Criticism of Java for complexity and a dearth of tools is fair. But are Trails, Grail, and AppFuse strong enough answers to Rails such that Java EE can be more agile for smaller apps? Time will tell. I think Spring and Hibernate are helping a great deal, more than EJB 3.0 will.
    everybody knows it is hard thing to learn java,It's hard to learn anything, period. Programming in any language is a long learning curve, because it's so much more than just language syntax. You don't do enterprise apps just by learning Java, even if you stick to the EE platform. You have to know SQL and relational databases, messaging, XML, HTML, JavaScript, HTTP...the list is pretty long. All those technologies carry over to .NET and Ruby and anything else, so it's not just Java that's complex. Enterprise problems are complex.
    And once you know all that, there's the problem of designing elegantly. It's a long climb no matter which language is on top.
    regarding to server side programming for a java
    newbie, it would be much harder to learn, further, it
    will take you long long time to learn server side
    java programming.
    however, the job market (java) is still hot, and
    seems to keep hot. and people still wanna jump in.It's still good, just not crazy like it was at the end of the 90's. There is the problem of competition from China, India, Vietnam, etc. that won't go away. But what field hasn't been affected by global competition? Only those areas where you have to touch the client, like auto mechanics. Even medicine has been affected - x-rays can be read anywhere in the world.
    So, still confused to tell people whether or not to START java...;-((If you like programming, jump in. Learn Java, but it's more important to learn those bedrock technologies (e.g., data structures, compilers, parsers, finite automata, decomposition, relational databases, etc.) and learn how to learn. Languages will come and go. When I jumped into this field ten years ago C++ and Corba were the rage and Java didn't exist. Now I make a living writing Java. I'm reading about Ruby and Rails now, just dipping my toes into the water.
    None of us are any better prophets than you are. I don't know what will happen or if Java will still be here ten years from now. COBOL and FORTRAN were born in the 50s, and both are very much with us today.
    Just stop whining about it. Do what makes you happy, and stop worrying about what other people think.
    %

  • How can i start my learning Java?

    i am new to Java,and my platform is Linux.
    how shall i begin my learning Java?
    I think first i shall install J2ee on my Linux,
    but what is the second and which editor is best
    for write Java source code?

    >
    and as editor: use one with syntax highlighting like
    nedit or Emacs/XEmacs and there are several free IDE
    available like http://eclipse.org which include an
    editorDon't use an IDE for at least 3 months use a simple text editor such as;-
    http://welcome.to/metapad/

  • TS3274 its almost 10 months,i purchased ipad2 32 3g wifi.itinially i got problem with applications shut off frequently now since last 4 months my ipad starts with a message (connect iTunes)like first time start and going to restore mode and it occurs freq

    its almost 10 months,i purchased ipad2 32 3G wifi.itinially i got problem with applications and safari shut off frequently now since last 4 months my ipad starts with a message (connect iTunes)like first time start and going to restore mode and it occurs frequently.plz advise.

    If you have followed the standard Apple troubleshooting processes (see user guide )
    probably a trip to the local Apple Store Genius bar is called for before warranty runs out
    Assuming the iPad has been released in your Country if not you may have to take it to a
    neighbouring Country where it is available
    This page will tell you ,via the drop down menu Countries that can support iPad
    http://support.apple.com/kb/index?page=servicefaq&geo=United_Kingdom&product=ipa d

  • How do I get my ipod to play a playlist from reverse order? (Start with recently added song instead of first added)

    How do I get my ipod to play a playlist from reverse order? (Start with recently added song instead of first added)
    So I'm adding new songs to a very old playlist? Is there anyway that when I add them, they automatically go to top of playlist? How about getting one song to the top of a playlist.  That drag to arrange function is very annoying because it is slow and the playlist does not scroll up very well on a PC.

    Make a new playlist by pressing the little plus button at the very lower left corner of iTunes. An new playlist will appear in the Source pane called "untitled playlist". While the name is highlighted, you can change it to whatever you want. Drag all of the tracks from all the albums that comprise a single book to that playlist. Sync that playlist to your iPod.

  • Java Applet HelloWorld "Getting Started With Applets" example not working

    Hi there,
    It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
    Every time I try and run the example from the following code:
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    import javax.swing.JLabel;
    public class HelloWorld extends JApplet
      // called when the user enters the html page:
      public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
        try{
          SwingUtilities.invokeAndWait(new Runnable()
            public void run()
           JLabel myLabel = new JLabel("Hello World");
           add(myLabel);
            } // end running the application
          }); //end of swing invokeand wait
        } catch (Exception error){ // end user running the app in page
           // System.err.println("GUI didn't work on initial run");
    }It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
    Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
    Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
    Thanks and I look forward to any replies,
    Jeremy.

    in the Getting Started with Java DB tutorial they
    tell u how to set ur "DERBY_HOME" (what is that?).
    once i press enter after typing this command:
    set DERBY_HOME=D:\Java\Java
    Phonebook\javadb in my command prompt do i get
    any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
    they also tell u how to set ur "JAVA_HOME" (what is
    that?). The Java installation you want to use
    in their example they give u this: set
    JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
    but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
    also once ive done this: set
    DERBY_HOME=D:\Java\Java Phonebook\javadb this
    set JAVA_HOME=D:\Program
    Files\Java\jre1.6.0 and this set
    PATH=%DERBY_HOME%\bin;%PATH% and then type
    sysinfo to verify that the variables were set
    correctly i get these errors: 'D:\Java\Java' is
    not recognized as an internal or external command,
    operable program or batch file and '""'
    is not recognized as an internal or external command,
    operable program or batch file any help would
    really be appreciated because this is really killing
    me!you need to set your path variable - so something like:
    set PATH=C:\Program Files\Java\j2se1.4.2_05\bin

  • Firefox start with two pages. One says welcome to Firefox etc. And the other is my homepage (google). I want to stop the first page. How can I do this??

    Firofx (5.0) starts with two pages. One is the welcome to Firofox and also that there are Add-ons available. The other one is my homepage (google). I want to stop the first page. How can I do this?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • How to start with Java TV API?

    Hi,
    I am new to Java TV API and i don't know how to start with it. Can any body suggest me what i would require(Software and hardware) to start coding in Java TV. Is MHP API are required for it if yes then how i can get those APIs??
    Thanks in advance
    Sajal Mahajan
    [email protected]
    Message was edited by:
    Sajal.Mahajan

    OCAP 1.0 and 1.1 specifications are avaible here:
    http://opencable.com/specifications/ocap.html
    tutorials:
    http://interactivetvweb.org
    Emulator:
    http://xletview.sourceforge.net/

Maybe you are looking for

  • How do I block kids phone so they don't go over their data limit?

    My son continues to go over his data plan every month.  I want to block the data so when his data usage is used, he cannot go over the usage until it starts over the next month.  I do not want to buy a more expensive data plan

  • Wolfenstein Enemy Territory sound issues

    I've installed the latest version + patch of W:ET from the AUR (running 64 bit archlinux). Out of the box the sound was not working. A solution here: http://ubuntuforums.org/archive/index.php/t-40795.html worked. Specifcally: $ sudo modprobe snd_seq_

  • Adobe took my money, but I get no product?

    When attempting to download 'Adobe Photoshop Elements 11 & Adobe Premiere Elements 11' that I purchased, I get the error Your browser (Internet Explorer 4 or earlier) is not supported by macromedia.com. For the best possible experience, please use th

  • Mobile beta doesn't provide a means to bypass sec_error_unknown_issuer

    When accessing a website that would cause firefox to produce a sec_error_unknown_issuer error message, it is possible to view the certificate, accept it, and carry on anyway in the desktop version of firefox. In the mobile version, this option does n

  • Most space-efficient codec that will edit smoothly?

    I have several MPG files (actually they're MOD/MOI files from a Canon camera), which have the usual problems in Premiere Elements -- jerky, out-of-sync, etc. playback. I've read some posts about converting them to AVI, but I don't know what codec to