padmavathi gangasani

Greenhorn
+ Follow
since Oct 10, 2012
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by padmavathi gangasani

Both servlet context and servlet config will be set in deployment descriptor.Servlet Config is per servlet where as servlet context param value will be shared by total webapp.

So,if you want to chane param value,you need to update in DD and need to restart the server.In real time,it is applicable for storing database values.And we cant use context params per request.
5 years ago
Thanks Josper,
It clears my doubt ,but I have another confusion.

If class B is in different package and we didnt extend A.But,created reference for A.
But, we cant access protected methods in A through that reference.

Why?
5 years ago
Thanks for reply.

What I am tryin to ask is there are two classes A and B.

If B extends A,will B hold the memory of A?
5 years ago
I have a very basic question?

What is the difference between extending a class and using super class methods and creating objects for the class,using object to invoke a method.

How memory will be allocated in both terms adn why proteced modifier access for subclass and non subclass(using object to invoke protected method)in different packaes.

Thanks.
5 years ago