What happens to a static var that is defined within a method of a class?
Answer / Paras Verma
"A static variable declared within a method in a class (method-local static) has the same behavior as one declared outside of any method or inside the class itself. However, if you declare a static variable inside a constructor, it will not be accessible until after the constructor finishes executing since constructors are also static methods."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a program in java to create a doubly linked list containing n nodes.
What is a heavyweight component?
What is character in data type?
What will happen if we cannot mention "finally" in Java Program ???
How to change value in arraylist java?
What is the purpose of stub and skeleton?
What is the difference between applet and application?
What are possible key words, we can use to declare a class?
What are jee technologies?
What is the difference between constructor and method?
What is difference between final and finally in java?
What are the parts of a method?