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
Can we define private and protected modifiers for variables in interfaces?
What is meant by javabeans?
What is your platform?s default character encoding and how to know this?
Can you pass functions in java?
How can we avoid including a header more than once?
Can you extend main method in java?
What is the integer of 16?
Why do we need autoboxing in java?
Define locale.
Can a abstract class be defined without any abstract methods?
What is a substring of a string?
Why can't you declare a class as protected?
Can you declare a private method as static?
What is difference between local variable and global variable?
What are unchecked exceptions in java?