Computer Science, asked by sujayG17, 8 months ago

If we initialize or put a static variable inside a method, constructor or block, what does it become? (Java)​

Answers

Answered by rathorehimanshu120
1

Answer:

Do static variables get initialized in a default constructor in java? A static filed/variable belongs to the class and it will be loaded into the memory along with the class. You can invoke them without creating an object.

Similar questions