Srinivasa Kumar Meda

Greenhorn
+ Follow
since Dec 10, 2010
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 Kumar Meda

What is the difference between and . If there is no difference then why should we need this way?
13 years ago
Hi Anand,

Did you get any solution for this?? I am also facing the similar problem.

Mine is In the index.jsp , I need to populate a select box and then fill the data in the form and submit. On submit of it, it will invoke another action at this time if validation defined fails, it cant populate the data for select box along with the error messages.

Could anyone who already got the solution for this, can you please help us???

Thanks,
Srinivas
13 years ago

You need to give fully qualified name for the Servlet Class.
13 years ago
Hi Vijitha,

Thanks for the reply.

You mean all the properties and methods of object A are part of the object B when the Object B is created in Heap?
13 years ago
Thank you all for your responses. Its really informative and helpful in getting the answer for my question.

I have one associative question for this question.

The question is

Class B extends A{
}

here B is a sub class of A. i.e., B IS-a A.

How the object B is stored in Heap?? How B IS-a A can be represented in Heap? Is the Object B having A inside it while creating object B in Heap??
13 years ago
We know that the Objects in Java are stored in Heap. If we have two instances of a specific class, how many objects will be available in heap?

For ex,

Sample s1 = new Sample();
Sample s2 = new Sample();

s1,s2 are two instances of Sample.

1). Can you please tell me how many Objects of Sample is created in Heap to store s1 and s2?


The second question is:

If class B extends class A and

A a = new B(); is declared.

2). What is the object stored for reference a in Heap??
3). and since B extends A, how the object of B will be in Heap??


Can someone please answer the 3 questions??

Thanks,
Srinivasa Kumar Meda
13 years ago