Microservices
The interviewer asks how many bytes the new Object occupies in the memory, you have to answer this...
Staying up late is not easy, and do it and cherish it. Welcome to the veterans of one-key three-connection, for encouragement, thank you very much. How to know the size of an object in memory? There is something called sizeOf in C language, it is very convenient to know the size of the object. But Java doesn't have such a thing, don't panic, Java itself has an Agent technology. Java Agent technology What mechanism is Agent? For the jvm virtual machine, to load a class to the memory, an agent ca