rchopp

Greenhorn
+ Follow
since Nov 17, 2000
Merit badge: grant badges
For More
http://i.am/RaviKiranC
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 rchopp

Try without specifying the form name. It should take the default form name from the struts-config.xml for that action mapping.

Thanks,
Ravi.
18 years ago
Michael,
I always wonder how to use these interfaces and abstract classes while thinking about designing any application.
I would greatly appreciate any of your help in telling the key points to consider while designing etc. with any examples you could have.
Thanks in advance.
Hope your answer to this will also help other green horns too
Ravi Kiran Choppalli

------------------
Cindy,Jane,asim
I'm delighted to see very good responses. Now, I'm very much clear about that. The explanations were elaborate.
Thank u very much.
As Shailesh asked, I'll change my username, and see me as Ravikiran Choppalli
asim,
Thanks for the reply. But my doubt was that when u r invoking
Base b = new RType() , why the base class constructor is called. Is it not the RType() constructor that is called ?
sailesh,
Where can I change the name in my profile. guide me.
Thanks,
Ravi.
Hi,
As my understanding goes..
Those classes that are listed in the verbose mode are the ones used by the JVM internally. Remember that JAVA is a JIT (Just In Time) Compiler. It loads the classes needed when necessary.
Thanks,
Ravi.
class Base{
int i = 99 ;
public void amethod(){
System.out.println("Base.amethod()") ;
}
Base(){
amethod() ;
}
}
public class RType extends Base {
int i = -1 ;
public static void main(String arg[]) {
Base b = new RType() ;
System.out.println(b.i) ;
//b.amethod() ;
}
public void amethod(){
System.out.println("RType.amethod()") ;
}
}
The output of the above code is :
RType.amethod()
99
How is the first RType.amethod() getting printed ?
Thanks,
Ravi.