As far as I know all the static variables and static methods will go on Static and all the methods, local variables and reference variable that declare in the method will go on Stack, but what about local variables and reference variables in a static method ? I guess they will be allocated on the Stack, but I am not sure how does it work.
For example:
public static void A(){
int x = 3;
Point p = new Point();
}
Also I guess all the threads share Static as well as they share Heap, correct ?