Win a copy of Event Streams in Action this week in the Java in General forum!

E Pease

Greenhorn
+ Follow
since Mar 23, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by E Pease

There was a link, to a mock test of 14 questions, in a previous thread. I can't find the link, but I can email you the file. I will post the link when I can find it.
I was under the impression that if you passed the SCJP 5 Beta test you were fully certified in Java 1.5. Why is it better to take the final exam. I thought I would take the beta instead of the SCJP 1.4 exam because IF I failed it would only be $50. However, WHEN I pass I would have a more up to date certification and I would not have to wait 2 - 6 more months. Is this the wrong way to think of this? Should I just wait for final SCJP 5 to come out?

Thanks
Thanks Nicholas!
Congratulations to your co-worker.
What score did you co-worker recieve?
How long has she/he been programming?
Did he/she take the SCJP 1.4 exam?
Did she/he use the Core Java book just to understand the new Tiger objectives?
Are you using the same books to study?

Thanks in advance! Good luck on your test!
I found Deitel's "How To Program Java" book to be very helpful. A friend just took and online class and they used that book. I have been told that it has too much information in it for a beginner but I think too much info is a good thing. This site, JavaRanch is great for additional help when you get stuck or if you need a better explanation on something. I hope this helps.
14 years ago
Congratulations Satya!

I am also studying for the SCJP.
I have been studying K&B's book as well as using the Deitel book and this site for deatils.
How many shift (>>, <<, >>> questions were on your exam)?

What do you think you will do now?


[ July 05, 2004: Message edited by: E Pease ]
15 years ago
Hello,
It seems that question number #138 is incomplete in the rules round up game. Can you please tell me what the whole question is?

Thanks in advance.
15 years ago
I am studying for the Java programmer's exam and have not started studying the security features of Java yet. However, I was asked about how secure Java was and could not answer so I thought I would ask you guys.

Do you think Java is a more secure language than Perl or C++ in regard to hackers. I read that Java is a lot more secure than C++ because it allows you to set permissions and sign each post and reply sent to the server.

I do not know anything about Perl. Is is better than Perl? Does anyone know or know where I can find the pros and cons for each language in redard to security. How does each work with Firewalls? Does it matter if the information is going over an ISDN line or through a dial-up connection. What if you are sending audio and video files over the web to a private audience.

This topic is important to a temporary boss of mine so I would like to find out this weekend and have an answer for him on Monday.

Thanks in advance.
[ June 04, 2004: Message edited by: E Pease ]
15 years ago
Sorry, I accidentally posted before I was done.
So, then I created a folder in called test in the folder the original file had been saved in and saved the program in it. Then I recomplied it and it worked fine. I still do not know what the exact problem was but moving to the new folder seemed to fix it. Wierd. Thanks again for all of your help. I hope this thread is useful for others.
15 years ago
First let me start by thanking you guys for helping me out.

So, I reemoved the main line and replaced it. I neglected to put in the (String [] args) part before I recomplied it so I got the following error message:

// error message
Calc.java:6: '(' expected
{public static void main{

That made sence so I put in the (String [] args) between main and {. Then I recompiled the program and got the same error message as before:

// error message
.\Integer.java:3: ,identifier. expected
15 years ago
I changed the text to PLAIN_MESSAGE and I still get the same message. I am able to complie some programs but not a few. Could it hav something to do with the imports? The program below is one of the ones that run just fine.

/*
// // Java 109 : Networking with Java, by David Reilly
// // MyFirstInternetAddress
// // Displays the IP & hostname of localhost // // */
import java.io.*;
import java.net.*;
public class getIP {
public static void main(String args[])
{
try
{ InetAddress localaddr = InetAddress.getLocalHost();
System.out.println ("Local IP Address : " + localaddr );
System.out.println ("Local hostname : " + localaddr.getHostName());
}

catch (UnknownHostException e) {
System.err.println ("Can't detect localhost : " + e); } } }
15 years ago
I have the following program:

import javax.swing.*;
import javax.swing.JOptionPane;
import java.lang.*;

class Calc
{
public static void main ( String [] args )
{
String firstNum, secondNum;
int num1, num2, sum, product, difference, quotent;

// obtain the numbers from the user
firstNum = JOptionPane.showInputDialog( "Enter the first number: ");
secondNum = JOptionPane.showInputDialog( "Enter the second number: ");

// convert form String to int
num1 = Integer.parseInt( firstNum );
num2 = Integer.parseInt( secondNum );

// calculate the sum, product, difference, and quotent
sum = num1 + num2;
product = num1 * num2;
difference = num1 - num2;
quotent = num1 / num2;

// print out the sum, product, difference, quotent
JOptionPane.showMessageDialog( null, "The sum is " + sum, "Result", JOptionPane.Plain_Messge );

//System.out.println( "The sum is " + sum );
//System.out.println( "The product is " + product );
//System.out.println( "The difference is " + difference );
//System.out.println( "The quotent is " + quotent );

} // end main
} // end class Calc


And I get the following error message when I try to compile it:

.\Integer.java:3: <identifier> expected
publi static void main (String agrs[])

There are four other errors but this is the first one. I have tried renaming the class and file but I still get this message when I try to compile. I do not understand why it says there is no 'c' on the word public. I also do not know why it says 'String agrs[]' when my program says (String [] args). I do have a tendency to miss the small things but I am really stumped this time.


Thanks in advance.
15 years ago
That is great.
How many hoours did you study per day? Did you study every day? Did you have ANY previous knowledge of Java? Other languages?
15 years ago
I am trying to find a new career path. I loved programming in college ( 1 year C++, 6 months Java) but have not done anything at a real job. I want to get away from technical support and into programming. I really want to get into wireless programming. I think that would be J2ME. I figured I would take the SCJP then the SCMAD.
My thinking is that there will be more work in the future with J2ME and I will not be as far behind other programmers because it is fairly new.
Is this correct? Do you guys think another route would be better in the long run. I know most of us are in this situation but I would appreciate any thoughts you guys might have.
I think I have read on this site that a few people have taken the Beta Certification exam for the J2ME. Is that correct? If yes, can some of you tell me where I should start in studying that material because all of it will be new to me.
Thanks in advance for all the help.
I am trying to find a new career path. I loved programming in college ( 1 year C++, 6 months Java) but have not done anything at a real job. I want to get away from technical support and into programming. I really want to get into wireless programming. I think that would be J2ME. I figured I would take the SCJP then the SCMAD.
My thinking is that there will be more work in the future with J2ME and I will not be as far behind other programmers because it is fairly new.
Is this correct? Do you guys think another route would be better in the long run. I know most of us are in this situation but I would appreciate any thoughts you guys might have.
I think I have read on this site that a few people have taken the Beta Certification exam for the J2ME. Is that correct? If yes, can some of you tell me where I should start in studying that material because all of it will be new to me.
Thanks in advance for all the help.
15 years ago
Hello Mohana,
Would you mind sending a copy of your notes to me. I would like to have both but really need the SCJP 1.4 first.
info@thaiam.com
Thanks in advance.