I have read many topics regarding java memory initialization. I am not still not clear about static method initialization.
public class Abc
{
public static int test(String abc,Date d,Employee e){
--Some internal processing--
return 100;
}
}
1.Suppose if two threads are calling method test(Abc.test(--some data--)) will this two threads have separate stack or share same stack.
2.Will Static methods and constants(static final) consume more memory.
I need answer for this questions with clear explanation. If some one can give me memory structure for stack that will be good enough for my understanding.
Thanks you for all your answers.