jioy uilo

Greenhorn
+ Follow
since Mar 29, 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 jioy uilo

Hi
anybody have the objectives or faq on part 1 ?
Hi
Would like to take part 1 SCEA, pls advice which material should i loook for.
Hi
Just passed with 70. Thank you everybody at this wonderful forum !!
14 years ago
Can u do SCEA with a SCJP ?
Is SCJD compulsory ?
Its actually two different track , from what i see
Hi Saket
Must we return a value in native ? can native be final/protected ?
Can it be declared in abstract or interface ?
must we implement all abstract methods in a subclass ?
whats the difference btn the above ?
Ordered sometimes - mean the order which the element are being inserted into the List/Set
and it will be output depending on the sequence of the collection
what abt a+b ?
Hi

I am looking for all native declaration(legal) and where in a Java class can you place the native code .
Includind inner class, methods , etc.
Given the following class, which are correct implementations of the hashCode() method?
class ValuePair {
public int a, b;
public boolean equals(Object other) {
try {
ValuePair o = (ValuePair) other;
return (a == o.a && b == o.b)
|| (a == o.b && b == o.a);
} catch (ClassCastException cce) {
return false;
}
}
public int hashCode() {
// Provide implementation here.
}
}
abs
i think i got it , thks Anupamm
abs
i think i got it , thks Anupamm
abs
oops sorry anu, just make it i =....
why error in the line after 12:
public static void main(String[] args) {
int counter = 0;
l1:
for (int i=0; i<10; i++) {
l2:
int j = 0;
while (j++ < 10) {
if (j > i) break l2;
if (j == i) {
counter++;
continue l1;
}
}
}
System.out.println(counter);
}
}
can somebody explain ? thks
public class Qf1e3 {
String s1;
String s2 = "hello";
String s3;
Qf1e3() {
s1 = "hello";
}
public static void main(String[] args) {
(new Qf1e3()).f();
}
{
s3 = "hello";
}
void f() {
String s4 = "hello";
String s5 = new String("hello");
assert(s1.equals(s2)); // (1)
assert(s2.equals(s3)); // (2)
assert(s3 == s4); // (3)
assert(s4 == s5); // (4)
}
}