What is static variable and static method?
Answer Posted / kutta
a variable declared inside a method is local to that method.
it can't be accessed outside the method. if a variable
declared in a class means its a global variable.if we
declare a variable with static keyword in a class means it
can be accessed by all the class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is arrays sort in java?
What is the technique adopted to create an immutable class?
Can a class have multiple constructors?
Mention some features of java?
When will you define a method as static in Java?
What is a platform?
Explain notifyall() method of object class ?
What is assembly condition codes?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What are the special characters?
Explain try and catch keywords in java?
Give an example of call be reference significance.
Can a class extend 2 classes in java?
What is the string function?
What are the benefits of immutable objects?