Answer Posted / rableen khurana
Yes we can access static variable in non-static
methods....and we can access instance variable in static
method also with the help of object......
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How is a variable stored in memory?
What is meant by javabeans?
Can we have 2 main methods in java class?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What do you mean by composition in java?
What are the advantages and disadvantages of reference counting in garbage collection?
What are operators and its types?
When throw keyword is used?
What are the special characters?
What is difference between protected and private?
What is a map? What are the implementations of map?
What do you mean by synchronized non access modifier?
What is a null check?
What is the difference between jdk, jre, and jvm?
What do you mean by inner class in java?