Results 1 to 10 of 10

Thread: JAVA and J2EE

  1. #1
    rgbosque is offline Member
    Join Date
    Nov 2007
    Posts
    16
    Rep Power
    0

    Question JAVA and J2EE

    hi guys,

    im always confusing about these term JAVA and J2EE.

    what is the difference both of this?

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    JAVA is computer software product developed by Sun Microsystem, which provide a system for developing and deploying cross-platform applications.

    J2EE(Enterprise Edition) is a Java platform designed for the mainframe-scale computing typical of large enterprises.

    Java is a collection of those, J2ME, J2SE and J2EE.

  3. #3
    rgbosque is offline Member
    Join Date
    Nov 2007
    Posts
    16
    Rep Power
    0

    Default

    thenks a lot Eranga...
    then what should i learn first as a newbie on this language?

    Additional:
    if i run this simple code of "if then statement" the name Variable is not returning TRUE if i entered a "RODEL". Is "if then statement" is only for numbers?
    Thanks in advance...

    This is a code:
    import javax.swing.JOptionPane;

    class DialogBox {
    public static void main(String[] args) {

    JFrame frame = new JFrame();

    String name = JOptionPane.showInputDialog("What is your name:");

    if (name == "Rodel") {
    JOptionPane.showMessageDialog(frame,"You are " + name);
    }
    else {
    JOptionPane.showMessageDialog(frame,"I Dont Recognize Your Name");
    }


    }
    }
    Last edited by rgbosque; 11-29-2007 at 04:15 AM. Reason: wrong Jave Code Presentation

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by rgbosque View Post
    then what should i learn first as a newbie on this language?
    You should learn standard Java concepts first, that is J2SE(Standard Edition). Lots of books also available, I'm Sam's publication user. If you can find this book.

    Sams Teach Yourself Java in 21 Days

    Excellent book for beginners, I told you in my experience.



    Quote Originally Posted by rgbosque View Post
    Additional:
    if i run this simple code of "if then statement" the name Variable is not returning TRUE if i entered a "RODEL". Is "if then statement" is only for numbers?
    Thanks in advance...

    This is a code:
    import javax.swing.JOptionPane;

    class DialogBox {
    public static void main(String[] args) {

    JFrame frame = new JFrame();

    String name = JOptionPane.showInputDialog("What is your name:");

    if (name == "Rodel") {
    JOptionPane.showMessageDialog(frame,"You are " + name);
    }
    else {
    JOptionPane.showMessageDialog(frame,"I Dont Recognize Your Name");
    }


    }
    }
    I'll try to explain in simple words as much as possible. Simply for your question, the answer is NO. name is a String type variable. If the variable is Rodel, output is "You are Rodel". It gives on the "if" condition.

    If not in "else" condition, your output is "I Dont Recognize Your Name". In this case if-else is not for numbers, for String, that is sequence of characters(letters, numbers, etc..)

    JFrame and stuff are focusing on graphical format. You can learn those stuff in J2SE. In the code you have provide some errors. Try to find those later.

    Hope it is clear to you.:)

  5. #5
    rgbosque is offline Member
    Join Date
    Nov 2007
    Posts
    16
    Rep Power
    0

    Default

    tenks a lot Eranga.

    hope you well be my mentor, upon my journey in JAVA.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  7. #7
    rgbosque is offline Member
    Join Date
    Nov 2007
    Posts
    16
    Rep Power
    0

    Default

    hi,
    im downloading right now NETbeans 5 for windows, it is good for the beginners? how about ECLIPSE?
    Its JAVA Time...:p

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    I think netbeans is more better than eclipse. But actually I don't have much experience about those two IDEs. When I'm start work in Java, I used notepad and later move to the IntelliJ IDEA. That is the best IDE I've found on Java.

    If you are looking more details about it, post your question on our forum, "Java IDEs"

  9. #9
    rgbosque is offline Member
    Join Date
    Nov 2007
    Posts
    16
    Rep Power
    0

    Default

    ok, i will start on notepad, i think it is the best way to become a Pro.
    Its JAVA Time...:p

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    What I think is that your decision is ok, but actually it is better if you can move with an IDE. When you use notepad, there is a chance to you, that you are more familiar with keywords, data types and many more. But all of those you should use.

    On an IDE it is not, you can see all the related methods and stuff while coding.

Similar Threads

  1. Onsite UK for Java/J2EE Professional
    By aman_max1981 in forum Reviews / Advertising
    Replies: 0
    Last Post: 11-23-2007, 12:02 PM
  2. Urgent Requirement for Java/J2ee
    By anushareddy7480 in forum Java Software
    Replies: 1
    Last Post: 07-23-2007, 02:35 PM
  3. openings on java/j2ee
    By anushareddy7480 in forum Java Applets
    Replies: 0
    Last Post: 07-23-2007, 12:59 PM
  4. Urgent Requirement for Java/J2ee
    By anushareddy7480 in forum New To Java
    Replies: 0
    Last Post: 07-23-2007, 12:56 PM
  5. best practices guide to Java/J2EE web aps
    By javaforme44a in forum New To Java
    Replies: 7
    Last Post: 07-18-2007, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •