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 purpose of a default constructor?
What is scope & storage allocation of global and extern variables? Explain with an example
Why singleton class is used in java?
What is the difference between a synchronized method and a synchronized block?
What is data object example?
Does java initialize arrays to zero?
What is gc()?
What does \ mean in regex?
Can we write class inside a class in java?
What do you mean by synchronized non access modifier?
Explain about procedural programming language or structured programming language and its features?
What is jrmp?
What happens when a thread cannot acquire a lock on an object in java programming?
What are the parts of a method?
Which access specifier can be used with class ?