Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Esenih Camai

Greenhorn
+ Follow
since Jan 07, 2001
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 Esenih Camai

As is described in the comment before method body, the parameter of the method, toMatch, is the record number field. But there is no such thing as a "record number" field (1, 2, ...24) in the database record. The first field in a record is the "Fright Number" field, which has the value of "SA001", "PA008", "RA981" ...
What is wrong with my thinking?
Esenih Camai
Could it be that at the beginning of each record, there is a space for marking wheather the record is LIVE (0) or DELETED (1).
That is just my hunch.
The book help me a lot in getting my SCJP2. I have been trying to read the developer exam section of the book, it did not help. The material is too abstract, I can't link what I read in the book to what I need to do for the assignment.
I downloaded my assignment last week, nowhere is conversion tool mentioned. Is this conversion tool something you HAVE TO do to finish you assignment?
I am stucked at Starting up the server, I can't get the following to work.
java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes/
-Djava.rmi.server.hostname=zaphod.east.sun.com
-Djava.security.policy=java.policy
engine.ComputeEngine

I really do not understand how to set the codebase, hostname and policy properties.
Can someone help?
19 years ago
What will happen when you attempt to compile and run the following code?
class Base {
int i=99;
public void amethod(){
System.out.println("Base.amethod()");
}
Base(){
amethod();
}
}
public class RType extends Base{
int i=-1;
public static void main(String argv[]){
Base b = new RType();
System.out.println(b.i);
b.amethod();
}
public void amethod(){
System.out.println("RType.amethod()");
}
}
The answer is:
RType.amethod
99
RType.amethod
Why is not:
Base.amethod
99
RType.amethod
Thanks guys for sharing your knowledge.
EC
19 years ago
class Test {
//This is where class fields are defined
Test t = new Test(); //Why is this not OK?
//This is where the constructors are defined
Test() {
Test t0 = new Test(); //OK
}
//This is where the methods are defined
void show(){
Test t1 = new Test(); //OK
}
public static void main(String args[]){
Test t2 = new Test(); //OK
}
}

I am still having hard time understanding why I can CREATE an OBJECT of THE CLASS ITSELF that is still BEING defined?
There is an analogy in Peter Van Der Linden's book that a class is like a RUBBER STAMP. If this analogy is taken literally, then creating an object of the class that is still being defined is like using the rubber stamp while it is still being carved (you will get different inprints of the rubber stamp at different time).
I know a analogy is only a tool for understanding, but in this case it gave me the wrong impression that a class definition has to be complete before an object of it can be created, which naturally leads to the wrong conclusion that a class can ONLY create objects of ANOTHER class but not of ITSELF.
Thanks
EC
[This message has been edited by Esenih Camai (edited January 09, 2001).]
19 years ago