Swapna Sharma

Greenhorn
+ Follow
since Nov 13, 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 Swapna Sharma

Thanks a lot Narendra. Got my answer.
when <c:remove> in mentioned without a scope it starts from the default scope that is page scope and then searches all the scopes one by one in the order of least restriction i.e, page, request, session, application for the variable specified.
Hi,
I have a doubt regarding the loading of Web Container. I know the listeners, filters and servlets are first loaded when we start the Web Container. But is there any order in which they are loaded? or does the order in the DD matter. My friend took SCWCD exam last month and came across a similiar question. She doesn't remember the question exactly but it was pretty much the similiar. Can anyone help me out with this?
Hi Niranjan,
My position is similiar to yours? Did you get to find out if HFSJ helps someone entirely new to Servelets and JSP? I currently have Marty Hall, but Iam confused since Iam new to not only Servlets and JSP but also to web applications.
Any help would be greatly appreciated.
Got it. Thanks a lot for specifying it.
Hi,
I tried executing the following code:
1)class foo{
}
2)class bar{
}
3)public class Testinst{
4)public static void main(String [] a){
5)foo f= new foo();
6)System.out.println(f instanceof foo);
7)System.out.println(f instanceof bar);
}
}
I thought the answer has to be true and false. But I got a compile time error saying "impossible for foo to be an instance of bar".

I know the question is simple and changing the second line to 'class bar extends foo' would prevent the error, but it got me thinking as to how instanceof operator works. Can someone please explain why did I get a compile error or how the instanceof operator works?.
Hi Bert and Kathy,
Sorry, believe me or not I dint know that. Now that I know, I will buy it.
Hi all,
Thank you for the advice. Actually even I was thinking about going for 1.4 instead of 1.5. I have prepared very well for genrics and wildcards etc, but still don't confident because there aren't many resources available to practice and Iam taking SCJP for job purposes. Iam a fresher with no practical experience in Java except for the college projects. So I thought it's better for me to go for 1.4. i ahven't read any certification guides. I just read complete reference, Java in a nutshell by david flangan and a few topics from sun website. I did a few mock exams. So is 2 weeks from now enough for me to take the 1.4 exam?

[piracy deleted - Jim]

- Swapna
[ November 15, 2005: Message edited by: Jim Yingst ]
Yes tht's true the default visibility is within the package and changing the modifier of x to protected or public should work fine. But the problem is then the error should occur at line 4 in Test2, hence the answer should be E. Isn't it?
Hi,
Iam about to take the SCJP exam in in a few days to be precise 18 days. And Iam still a little ambigous on the topics involved. Most of the mock exams available for free are for 1.4 and 1.2 and Iam confused a lot. Though Iam able to score around 90% on the average level exams I still don't feel confident enough to face he exam. Can anyone please tell which topics to lay more stress on. And also any helpful tips are welcome, infact deparately needed