Srinivasa Gundapu

Greenhorn
+ Follow
since Jan 10, 2003
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 Srinivasa Gundapu

can anyone tell me what is the pass percentage for java 1.2 &1.4 exam
thank u
public class Tux extends Thread{
static String sName = "vandeleur";
public static void main(String argv[]){
Tux t = new Tux();
t.piggy(sName);
System.out.print(sName);
}
public void piggy(String sName){
sName = sName + " wiggy";
start();
}
can anyone tell me the output of this program i am pasting the code for reference.and explain
public void run(){
for(int i=0;i < 4; i++){ sName = sName + " " + i; } }}
1) Compile time error
2) Compilation and output of "vandeleur wiggy"
3) Compilation and output of "vandeleur wiggy 0 1 2 3"
4) Compilation and probably output of "vandeleur" but possible output of "vandeleur 0 1 2 3"
Kevin,
My question is why is it not throwing error or exception when I inserted a semicolon after attribute value. We are not supposed to put semicolons after the attribute values.
Is the application server lenient or will the jsp container ignore the semi colon at the end.
Thanks,
Srinivas
Thanks kevin. Great explanation. Thats what I am looking for. I am seeing the processed output of the second jsp in the first jsp presentation. I thought the otherway, means instead of showing the processed output, it would show the code in the jsp.
Thanks. I got you.
Can anybody explain what exactly will be includeed with include directive in the following code..
<%@ include file="sampleA.jsp" %>
Will this include the processed output of sampleA.jsp or the text present(code) inside the sampleA.jsp
If I am not wrong, it should display the the contents present in the sampleA.jsp. Because the spec says
"//
An include directive regards a resource like a JSP page as a static object; i.e.
the bytes in the JSP page are included.
//"..
Thanks,
Srinivas
Here is the code snippet I used.
<%@ page import="java.util.*, java.lang.*, java.text.* " ; %>
The semi colon at the end is not throwing errors or exception. It is allowing me to go ahead. Is this acceptable. Or is the container lenient.
BTW I am used weblogic 6.1
Please clarify.
Thanks,
Srinivas
can anyone tell me wheather statement below is true or false if true and explain
An Inner class defined local to a block may be static
21 years ago
JSP
Assume you have four listeners.
1. session listener 1
2. context listtern 2
3. session listener 3
4. context listtern 4
Does it mean that listener 3, listener 1 will be notified prior to listener 4 and listener 2.
What is the notification order now. Please clarify.
Q16: Which of the following is not a valid top level class?
a). public class topclass
b). static class topclass
c). private class topclass
d). all the above
e). a and b
can somebody explain me what is top level class
What is the difference between the following two methods in session object.
attirbutRemoved(HSBE event) and attributeUnboundinvoked(HSBE event).
I dont understand the difference between the above two methods.
Any explanation is appreciated.
Thanks in advance.