Static Variable can referred in non-static method?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / brijendra kumar soni(xavient)
No,In Java Non static method can not permitted the staic
variable.
| Is This Answer Correct ? | 0 Yes | 17 No |
State one difference between a template class and class template.
What is the main purpose of serialization in java?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is the buffer limit?
What happens when the main() isn't declared as static?
who can we create the object of a class? in how many ways we can create it (max 5)
Can we increase size of array?
How do I write a self declaration?
can we override the main() method in java????
3 Answers Vimukti Technologies,
What is the benefit of lambda expressions?
when we create singleton design then we create private constructtor..so how JVM take private constructor to make object..but it's private..
What is meant by event handling?