Jacob Michaels

Ranch Hand
+ Follow
since Mar 23, 2003
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 Jacob Michaels

I am really excited to read this new book!! I read K&B's Sun certified Programmer and Developer Book, and I thought it was a great certification tool.
I am also a big fan of Oreilly books. I was not surprised to see their name on this book.
Thanks!
Thanks for the reply!
public class Test
{
public Test() //must have because you overloaded the default constructor below. If you do not
{ //you will cause a compiler error
}
String displayString = "Hello, World";
public Test(String aString)
{
displayString = aString;
}
public void display()
{
System.out.println(displayString);
}
public static void main(String argv[])
{
Test x = new Test();
x.display();
Test y = new Test("You must have a default construtor");
y.display();
}
}
[ October 09, 2003: Message edited by: Jacob Michaels ]
16 years ago
Can anyone tell me a good reason why a programmer would want to manually type the default constructor in his/her program when the JVM automatically inserts that code for you?
Thanks for any responses!
16 years ago
So would you agree or disagree that all variables created in Java are Objects?
Thanks!
16 years ago
Can anyone please explain the difference between Objects and Variables? Are all Variables created in Java considered Objects?
Thanks for any responses!
16 years ago
I took the test around 8:30am this morning. I am glad that I passed. I scored 70%. The score is nothing to brag about, but I feel good about passing. I used K&B book. Everything I needed to know was in that book.
Thank you to everyone on javaranch.com! This place is great!!
[ August 01, 2003: Message edited by: Jacob Michaels ]
16 years ago
Is Tomcat compatible with Microsoft's Server 2003? If so, is it configured the same?
Thanks for any responses.
16 years ago
Thanks for the great relpies. I do not have a server running Oracle.
Do I have to purchase software in order to use Oracle, or can I just download the driver for it.
I am using a Microsoft 2000 Advanced Server and I have Tomcat under the hood. Thanks again for the replies.
They are VERY helpful!
OK, Thank you, That helps!
I am studying for the SCJP. This code is from Java 2 Sun Certified Programmer & Developer for Java 2, Authors: Kathy Sierra, Bert Bates
My question is: I understand why I can't access the sizzle() through the Popcorn object. I am trying to figure out how I would go about accessing the sizzle() from the anonymous class.
class Popcorn {
public void pop() {
System.out.println("popcorn");
}
}
class Food {
Popcorn p =new Popcorn() {
public void sizzle() {
System.out.println("anonymous sizzling popcorn");
}
public void pop() {
System.out.println("anonymous popcorn");
}
};
public void popIt() {
p.pop();
//p.sizzle();
//Not legal! Popcorn does not have a sizzle()
}
}
I am running a Tomcat server. I designed a servlet that opens a database and displays the information in a html table. Everything works like a charm when I assing the dbUrl to Microsoft access driver. When I try to use the Oracle driver, it does not work. Is there something I have to install to use Oracle? and where is the oracle_jdbc_driver.jar located?
[ July 04, 2003: Message edited by: Jacob Michaels ]
I was taking one of Marcus Green's exams and it said this:
"Any class derived from an abstract class must either define all of the abstract methods or be declared abstract itself"
Does this mean when I extend an abstract class, I can declare all of my methods in the new class abstract, and I don't have to declare the new class abstract.
Thanks
Thank you!
That helped!
Thank you for the response and posting great mock exams. I am learning a lot about Java from your site.
I have read that campfire story and I enjoyed it very much. I wish there was for 3D arrays.
I am assuming that the probelm that I posted above:
when the amount exceeds 2^7-1 and it automatically is forced to -1.
Thanks again
I need help understanding this code.
I know that the highest number a byte can be is 127, but I don't see the connection:
(byte)128 = -128
(byte)255 = -1
(byte)256 = 0
Thank you for any responses
class E2 {
static byte a = (byte)127;
static byte b = (byte)128;
static byte c = (byte)255;
static byte d = (byte)256;
public static void main(String args[]) {
System.out.print(a + " " + b + " " + c + " " + d);
}
}
/*
127 -128 -1 0
*/