Swati Jambhale

Greenhorn
+ Follow
since Jan 26, 2001
Merit badge: grant badges
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 Swati Jambhale


Hello Friends,

I am little bit shocked with the way jsp aram is working. We know that jsp aram is used as subattribute in <jsp:include> , <jsp:forward> and <jsp lugin>
My code is ,
including.jsp
<html>
<body>
<jsp:include page="included.jsp" flush="true">
<jsp aram name="ename" value="Swati" />
<jsp aram name="deptno" value="20" />
</jsp:include>
</body>
</html>
included.jsp is my included file and reads 2 parameters pass by the pervious file.
included.jsp
<%
out.println(request.getParameter("ename"));
out.println(request.getParameter("deptno"));
%>

Output should be "Swati" and "20", but i am getting "null" and "null" value for both the parameter. I am really confused . Will anybody explain this to me.
Thanx
Swati
(SCJP2)
21 years ago
Hello Friends
I wanted to know what is the coupon price of XML certification exams in India. pls. I wanted to know it now.
Swati
Sun Certified Java Programmer.
Hello Friends
I cleared the scjp2 with 86%, Now i wanted to polish myself in JSP and Servlets. Where can i get a tutorials of jsp and servlets ?
Thanx
Swati

21 years ago
Hello Friends
Today i cleared SCJP2 exams with 86%, It is little less than what i was expected.
I was not comfortable with MultiThreading ,i think i have to improve much in it, In Threads in with i got 75. I got 4 TextField questions which was very simple.
I read Khalid mughal and Simon Roberts, In RHE very important things are explain in very simple language. In khalid those things are explained with a good examples. As a beginner, i preferred Kahlid Mughal, But if you having a java experience then RHE is very good to go through.
You should be very thro (really very very thro) with access control,exception handling,flow control, overriding,overloading, static part and most important threads. Most of the questions in exams was on these topics. Whenever i had a doubt i discussed in the forum, and i got a really satifactory answers.Discusssions really helped me very much. Thanks a lot.
Best of Luck to all who are preparing for exams, Be confident and give the exams.
Thanks to Kiran, Sanchay who are preparing for exams in this month. Best of Luck to them

Swati.
21 years ago
Hello Friends
Today i cleared SCJP2 exams with 86%, It is little less than what i was expected.
I was not comfortable with MultiThreading ,i think i have to improve much in it, In Threads in with i got 75. I got 4 TextField questions which was very simple.
I read Khalid mughal and Simon Roberts, In RHE very important things are explain in very simple language. In khalid those things are explained with a good examples. As a beginner, i preferred Kahlid Mughal, But if you having a java experience then RHE is very good to go through.
You should be very thro (really very very thro) with access control,exception handling,flow control, overriding,overloading, static part and most important threads. Most of the questions in exams was on these topics. Whenever i had a doubt i discussed in the forum, and i got a really satifactory answers.Discusssions really helped me very much. Thanks a lot.
Best of Luck to all who are preparing for exams, Be confident and give the exams.
Thanks to Kiran, Sanchay who are preparing for exams in this month. Best of Luck to them

Swati.
Hello Friends
Those question are from abhilash's collection.
Q1)A class which has all its constructors declared as private
1)Cannot be instantiated by any other class.
2)Cannot be extended.
3)Both i and ii.
4)has to be declared final.
ans : 3
I think question should be more specific, as one can instantiate such class in inner class defined in this class. What do you say?
Q2)Assume that th is an instance holding a thread object. th.start() causes the thread to start running and eventually complete its execution. The object reference by th is not accessable any more and is garbage collected when the garbage collecter runs.
True
False
ans is false? Do gc work differently in case of Threads ?

Swati
Hello
In Java Console message is
"BorderLayout: cannot add to layout: unknown constraint: null"
I am waiting for your standalone program. Thanx for your replies.
Swati
bye
Hello
Thanx for your reply. I am using IE4.0 , I don't know what is the problem. I can see the answer part. Is there is any other way to use this tester?
Swati
Hello
I tried to use applet, but when the applet started i can see the lower half part, which contain answers and upper part(which i think) has questions is blank. Even if i click the finish and try to review the questions a blank frame comes. so i am not able to use it. Is there is some problem in tester?
bye
Swati
Hello Friends
String s = "First" + "Second" + "Third";
3 String objects are created, assigning
s =null;
How many objects are eligible for garbage collection?
Swati

Hello Friend
This code doesnt gives a error.
System.out returns a reference of type PrintStream. PrintStream has number of overloaded println() method, one of which takes int as a argument. So your code should work.
Q1)
You need to create a class that will store a unique object elements. You do not need to sort these elements but they must be unique.
What interface might be most suitable to meet this need?
1)Set
2)List
3)Map
4)Vector
ans:1)
what not 3) Map to store unique object elements, and Map is unordered.
This question is from appliedreasoning applet
Q2)Do event adapter classes provide a default behaviour?
Q3)
<code>
public class Demo
{
public static void main(String args[])
{
Demo d = new Demo();
call().run();
}
public static Demo call()
{
return null;
}
public static run()
{
System.out.println("Run");
}
}
</code>
output => Run
I though it causes a NullpointerException
Q4)
Overridding method cannot throw exception which is not thrown in overridden method.(True or false)
ans = true
Q5)
byte b;
double d =417.35;
b=(byte)d;
System.out.println(b);
output is 95
but how to convert a double value into byte type?
hello
I wanted to know, if we are calling a finalize() method ,why we have to catch the Throwable exception or we have to mention that it throws this exception
i.e
public static void main(String s[]) throws Throwable
{
new Object().finalize();
}
why we have to include a throws clause or we have to catch this exception.
Is Throwable/Exception is consider as a Checked Exceptions ?

public void fun()
{
// code not throwing any IOExceptions
}
catch(IOException e)
{}
this code will cause an compile time error. as IOException is checked exception.
public void fun()
{
//code not throwing any kind of exception
}
catch(Exception e)
{}
This is compile and run perfectly
Is there is some rule which i am missing

Hello
All memebers are inherited by subclass. private members are only accessible from the class in which it is declared so they are inaccessible from subclasses .

hello
i need a firm answer please anybody who have given the exams please answer this. It is really urgent i have to reshedule my exams.
Swati