What is static variable and static method?
Answer Posted / anupam sharma
static variables are classes variables not instance
variables .They are hold the value and instantianted only
once for a
class.They are initialised at class load time.
Static method can be referenced with the name of the name
of the particular object of that class. That's how the
library methods like System.out.println works.
| Is This Answer Correct ? | 16 Yes | 18 No |
Post New Answer View All Answers
What is the reason behind using constructors and destructors?
How many bytes is double?
What is the unit of plancks constant?
What is difference overloading and overriding?
How to read and write image from a file ?
What is math floor in java?
What is class array in java?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What 4 doubled?
What are 5 boolean operators?
Can a class be defined inside an interface?
What is the difference between inner class and nested class?
What is your platform?s default character encoding and how to know this?
What is hashing principle in java?
Why charat is used in java?