Answer Posted / nagarajan.s
yes,In Java static Variable can referred in non-static method,
but static method cannot referred non-static variable
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
What is the use of default method in interface in java? Explain
What is the benefit of inner classes in java?
How to print an arraylist in java?
What is an immutable object?
Explain the importance of throwable class and its methods?
What happens when heap memory is full?
Can java inner class be static?
How large is a boolean?
What are the different types of java?
How variables are stored in memory?
What is class forname used for?
Can we use catch statement for checked exceptions?
Can we access instance variables within static methods ?
What is variable and example?
Which is dependent variable?