
11-28-2007, 07:01 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
Rep Power: 0
|
|
JAVA and J2EE
hi guys,
im always confusing about these term JAVA and J2EE.
what is the difference both of this?
|
|

11-28-2007, 07:15 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 6,525
Rep Power: 9
|
|
|
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

11-29-2007, 03:13 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
Rep Power: 0
|
|
|
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 03:15 AM.
Reason: wrong Jave Code Presentation
|
|

11-29-2007, 04:31 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 6,525
Rep Power: 9
|
|
Originally Posted by rgbosque
|
|
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.
Originally Posted by rgbosque
|
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 06:02 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
Rep Power: 0
|
|
|
tenks a lot Eranga.
hope you well be my mentor, upon my journey in JAVA.
|
|

12-03-2007, 06:07 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 6,525
Rep Power: 9
|
|
|
Never mind, I like to be that if I get a chance to do it......
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 06:23 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
Rep Power: 0
|
|
|
hi,
im downloading right now NETbeans 5 for windows, it is good for the beginners? how about ECLIPSE?
__________________
Its JAVA Time... To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 07:35 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 6,525
Rep Power: 9
|
|
|
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"
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 12:58 PM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
Rep Power: 0
|
|
|
ok, i will start on notepad, i think it is the best way to become a Pro.
__________________
Its JAVA Time... To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-04-2007, 06:28 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 6,525
Rep Power: 9
|
|
|
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 12:37 AM.
|
|