What is static variable and static method?
Answer Posted / ravikiran(aptech mumbai)
static variable is a class variable which value remains
constant for the entire class
static method is the one which can be called with the class
itself and can hold only the staic variables
| Is This Answer Correct ? | 43 Yes | 63 No |
Post New Answer View All Answers
What classes of exceptions may be thrown by a throw statement?
What is a native method in java programming?
Implement a stack with push (), pop() and min() in O(1) time.
Why java is used everywhere?
What is locale?
Is stringwriter thread safe?
Can we write any code after throw statement?
Should you use singleton pattern?
What is a class in java?
What is difference between path and classpath?
What is the parse method in java?
Can we return null in java?
What is a nullable field?
How do you add an arraylist to an array in java?
What is keyword auto for?