Armstrong D

Greenhorn
+ Follow
since Apr 16, 2002
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 Armstrong D

Hi
Mughal book page no 123 says
" For a final variable of a reference type it means that its reference value cannot be changed, but the state of the object it references may be changed"
am getting confused with this, can anybody explain please,
Thank's in Advance
Armstrong
Mughal book says
" Constructors cannot specify exceptions in the header ".
But to understand this i wrote this code below with the exceptions in the constructor header am able to compile it and run it.

class Const {
int w;
String h;
double d;
Const(int w, String h, double d) throws ArithmeticException {
this.w = w;
this.h = h;
this.d = d;
System.out.println("HERE : " + w + h + d);
}
}
class ConstDemo {
public static void main(String args[]) {
Const myconst1 = new Const(2, "abc", 1);

}
}
although i had specified an exception in the header it is compiled and executed
which is contrary to what mughal says
can anybody explain please
Thank you very much
In the Mughal book, the explanation for Instance Method is given like this...
" The body of an instance method can access all members, including static members, defined in the class.
The reason is that instance methods are passed an implicit parameter which is a reference to the object on which the method is being invoked.
This is object can be referenced in the body of the instance method by the keyword this. "

I did not understand what he means by
-------------------------------------
"implicit parameter which is a reference to the object on which the method is being invoked. "
can anybody explain please
Thank you very much
Armstrong
can anybody explain this arrrays of arrays, i am getting confused with the nested for loops,
and what should i know in arrays of arrays as am preparing for the SCJP
class arr {
public static void main (String args[]) {
int twoD[][] = new int[2][3];
int i, j, k = 0;
for(i=0; i<2; i++)
for(j=0; j<3; j++) {
twoD[i][j] = k;
k++;
System.out.println(twoD[i][j]);
}
}
}
Thank you very much
Sun's Testing Objective includes 4 API's
1. java.awt
2. java.lang
3. java.util
4. java.io
what does sun ask in these API's?
Thank you
Armstrong
can any body give a list of mock exams and where to find it
thank you
I want to go for SCJP,
which API and SDK should i use, is it
v 1.4
v 1.3
v 1.2
[ April 16, 2002: Message edited by: armstrong77 ]