Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Neelima Chandran

Greenhorn
+ Follow
since Jul 12, 2005
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 Neelima Chandran

looks like a valid assignment....sorry I don't have java running on my current system to check that out. pls help!
byte [] b1, b2[];
byte b3 [][];

b2 is a 2 dimensional array....so can't b3 be assigned to b2?
b2 = b3;

Thanks,
Neelima
will there be any questions from java.io package for SCJP 1.4?

Thanks,
Neelima
I saw this in one of the mock tests.... I don't agree with the answer that was given for this question.
Q) Suppose b and c refer to instances of wrapper classes, which two statements are
true? (Choose two)
A. b.equals(b) returns true.
B. b.equals(c) returns the same result as b == c.
C. b.equals(c) can return false even if c.equals(b) returns true.
D. b.equals(c) throws an exception if b and c are different wrapper types.
E. b.equals(c) returns false if the type of wrapper objects being compared are different.

answer given is B, C
I think the answer should be A and E.
A because equals should satisfy the reflexive property.
E because equals method return false if objects of different wrapper classes are compared.
C cant be true because it violates the symmetric property.
Am i right?

Thanks,
Neelima
Do all questions for the exam SCJP (310-035) have the same weightage?

Regards,
Neelima
yeep! should've known that. Thanks!
'A static reference variable can reference an instance of an anonymous class' - couldn't understand this one....can someone explain?
Are Event Handling and AWT topics included in the SCJP 1.4 exam? I noticed a few questions on these topics in the mock questions provided by JQPlus V4.

Thanks,
Neelima
Do we need to know the ranges of the unicode values for SCJP 1.4?

- Neelima
You wouldn't have got the classcast if the code was like this :

public class Test
{
public static void main(String[] args) {
Object[] objectArray = new String[2];
objectArray[0] = new String();
objectArray[1] = new String();
String[] addressArray = (String[])objectArray;
}
}
Thanks a bunch for all your valuable points.

Regards,
Neelima
Jdiscuss question of the day - April 3, 2005

Which of these statements are true?

Select 1 correct option.

a) Objects can explicitly be destroyed using the keyword delete.

b) An object will be garbage collected immediately after the last reference
to the object is removed.

c) If object obj1 is accessible from obj2 and obj2 is accessible from obj1,
then obj1 and obj2 are not eligible for garbage collection.

d) Once an object has become eligible for garbage collection, it will remain
eligible until it is destroyed.

e) An object can be finalized only once.

-------------------------------------------------------------

My answer was (c)

The answer given is e) with the explanation
if an object is resurrected in finalize() then it will never be finalized again.

Can somebody elaborate on this please?

Thanks,
Neelima