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
Why are parameters used in functions?
Why we use methods in java?
How to make a non daemon thread as daemon?
Why do we need array in java?
What about main() method in java ?
What is the maximum size of array in java?
Can we override protected method in java?
How thread scheduler schedule the task?
What are the methods available in a class?
Can a serialized object be transferred via network?
How do you create immutable object in java?
Is singleton a bad practice?
What do you mean by thread safe?
What is the benefit of singleton pattern?
What is a boolean structure?