Porchelvi Vendhan

Greenhorn
+ Follow
since Sep 08, 2001
Merit badge: grant badges
For More
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 Porchelvi Vendhan

Hi!
I got certified yesterday .I passed with 80%.
The questions were not very tough.
The mock exams helped a lot.
Maha your collection of mock exams is excellent.
Only after looking at this forum I came to know about the RHE book.It helped me a lot.
Thanks everyone for clearing my doubts.
Porchelvi Vendhan
22 years ago
Hi!
I got certified yesterday .I passed with 80%.
The questions were not very tough.
The mock exams helped a lot.
Maha your collection of mock exams is excellent.
Only after looking at this forum I came to know about the RHE book.It helped me a lot.
Thanks everyone for clearing my doubts.
Porchelvi Vendhan
Thanks!
Porchelvi
Hi!
For the following question can someone tell me what the answer is.I thought the answer was option a.But the answer key says that it is wrong.This question is in MindQ's mock exam,
TextArea ta = new TextArea( 10, 3 );
Produces (select all correct statements):
a) a TextArea with 10 rows and up to 3 columns
b) a TextArea with a variable number of columns not less than 10 and 3 rows
c) a TextArea that may not contain more than 30 characters
d) a TextArea that can be edited
Thanks
Porchelvi
Hi!
I found this question in one of the mock exams.
Which of the following statements about Java's garbage collection are true?
a) The garbage collector can be invoked explicitly using a Runtime object.
b) The finalize method is always called before an object is garbage collected.
c) Any class that includes a finalize method should invoke its superclass' finalize method.
d) Garbage collection behavior is very predictable.
The answer is a,b,c.
Please explain.
Thank you
Porchelvi
Hi!
Thanks for the reply.
But,
public class Test{
static Integer i1;
public static void main (String args [])
{
System.out.println(i1.toString());

}
}
now NullPointerException is thrown

Porchelvi
Hi!
When the following code is executed:
public class Test{
static String s1;
static Integer i1;

public static void main (String args [])
{
System.out.println(s1);
System.out.println(i1);
}
}
null
null
gets printed instead of throwing a NullPointerException.
Can someone please explain why?
Thanks
Porchelvi
22 years ago
Hi!
When the following code is executed:
public class Test{
static String s1;
static Integer i1;

public static void main (String args [])
{
System.out.println(s1);
System.out.println(i1);
}
}
null
null
gets printed instead of throwing a NullPointerException.
Can someone please explain why?
Thanks
Porchelvi
Hi!
Thanks for the reply.But I tried printing an Integer object
For example,
public class Test{
static Integer i1;
public static void main (String args [])
{
System.out.println(i1);

}
}
This prints null.
I am really puzzled.
Porchelvi
Hi!
When the following code is executed:
public class Test{
static String s1;

public static void main (String args [])
{
System.out.println(s1);

}
}
null gets printed instead of throwing a NullPointerException.
Can someone please explain why?
Thanks
Porchelvi
Hi!
In a synchronized method if a thread needs an input it calls the wait() method and gives up the lock.So another thread will have a chance to lock the method.The thread which called wait() will have a chance to run when some other thread calls notify() or notifyAll().
I have explained as per my understanding of synchronized methods.
Please correct me if I am wrong.
Porchelvi
Hi!
float f1= -2147483655f;
Math.round(f1) returns -2147483648
how?
Please explain.
thanks
Porchelvi
Hi!
double d= -0.5;
Math.ceil(d) returns -0.0
why wont it return 0.0 .What is the difference between 0.0 and
-0.0?
Can someone please explain.
Thanx,
Porchelvi
Hi!
I am using the "Complete Java 2 Certification Study Guide" by Simon Roberts,Phillip Heller,Michael Ernest.It is an excellent book.
Porchelvi Vendhan