And another question is can we only use this in companion ?? or anywhere else also
Difference between jvm field and jvm static?
Yes, you can use them anywhere
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
okay sir , but whats the difference between jvm field and static
Try to look for the bytecode for these two things and let me know if you still don’t understand anything