Win a copy of Learning Regular Expressions this week in the General Computing forum!

Agarwal Priyanka

Greenhorn
+ Follow
since Jul 25, 2008
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 Agarwal Priyanka

hi all...

please help me

difference between
> javax.servlet and javax.servlet.http package
> ServletRequest and HttpServletRequest
> <context-param> and <init-param> in web.xml
10 years ago
hello all...

please help me with these 2 questions...

>what is implicit objects in JSP and what are their types?

>difference between include,page,taglib directives.
10 years ago
JSP
hello all....

I am searching for a proper solution,can anyone help me? :roll:

> describe the hierarchy structure of the interfaces which are included in Collection framework.
> difference between pass by value and pass by reference in JAVA?
> how do we implement synchronization concept in java?
> difference between anonymous class and local class in static context and non-static context.
> how can we perform serialization in java?
> what is narrowing conversion and widening conversion?
> upcasting and downcasting feature for primitive data types and reference values.
> what is marker interface and adapter class?
10 years ago
hello all....

I am searching for a proper solution,can anyone help me? :roll:

What is mutability?
Which one is mutable: String or StringBuffer?Why?give example
10 years ago
hi

i am not getting clear with inner class, can anybody help me out?
what is static & non-static inner class, Anonymous class?
can i have some examples to make it clear...please!
10 years ago
hello......

can any body give me the proper definition of singleton class, class loader, string literals.
10 years ago
Good sir Mamadou Tour´┐Ż
you must have kicked that fellow...why do people cheat???
If one needs to qualify and stand on his legs,he/she must work hard upto there expectation...why to cheat and reach the goal? They are cheating themselves only!Who is going to loose...?why such people can not understand this simple thing..."Though once they will qualify an exam, but they are going to loose in future...Who will be the sufferer?
"Hardwork,Passion,Will,Energy...are the only source of success."
hello sir Ben,

Actually i read on this topic in "The Head First Servlet & JSP", which really confused me and a big question was biting me," is that the only way to get session? Can't we get it from ServletContext?" thats all...And i could not find any proper answer. There is a line written in the book,-But there is another way that can get a session...from a session event object.I am unable to follow this topic in the book, so i needed help to clearify my confusion.
Was my question stupid?then i am really sorry...but i need to be cleared.
10 years ago
hi,

We call request.getSession() to get the session, but is that the only way?
Can ServletContext do the same? Please explain i am with ServletContext.
10 years ago
all the primitive type wrapper classes override the Object.equals() method to compare the value of the objects; the default Object.equals() checks if the variables reference the same object.
equals(Object anObject)Compares this string to the specified object

== operator is used to compare contents of two string reference variables pointing to different String objects




Output

str1 == str2 : true
str2 == str3 : true
str3 == str1 : true
str4 == str5 : false
str1 == str4 : false
str1 == str5 : false
str1.equals(str2) : true
str2.equals(str3) : true
str3.equals(str1) : true
str4.equals(str5) : true
str1.equals(str4) : true
str1.equals(str5) : true
10 years ago
all the primitive type wrapper classes override the Object.equals() method to compare the value of the objects; the default Object.equals() checks if the variables reference the same object.
equals(Object anObject)Compares this string to the specified object



Output

str1 == str2 : true
str2 == str3 : true
str3 == str1 : true
str4 == str5 : false
str1 == str4 : false
str1 == str5 : false
str1.equals(str2) : true
str2.equals(str3) : true
str3.equals(str1) : true
str4.equals(str5) : true
str1.equals(str4) : true
str1.equals(str5) : true
10 years ago
this code is only used to set/store the attributes, not the session object.
You need to add...

to get a session,and


to set the attribute in the session.
[ July 27, 2008: Message edited by: Agarwal Priyanka ]
10 years ago
hi...

there are a lots of books you can follow.
you can try "Head First Java" - by Kathy,nutsheel by o'reilly, Helbert Schield etc.
10 years ago
thanks Sir Ulf.
10 years ago
the better way to examine any exception is using the try-catch block. you must try that to find the exception first.
10 years ago