I have doubt in Java static method memory allocation. I have three classes like,
class a {
public static void a() {}
}
class b {
public static void a() {}
}
class c {
public static void a() {}
}
Here all three classes have a static method a() with same signature. My doubt is, How memory will be created here? I mean only one memory will be created for method a() in heap or three memory space?
Consider above three classes are tapestry pages. If the user entered the class A, the static method memory will be created/allocated and then I have redirect to class B, here also I have the same static method. My doubt is, here memory will be create or not for class B static method .