What is static variable and static method?
Answers were Sorted based on User's Feedback
Answer / aravind
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 ? | 18 Yes | 22 No |
Answer / 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 |
How can we achieve IPC in JAVA?
what happens when we add the objects morethan the size limit to a hashmap
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What's the base class in java from which all classes are derived?
What is the purpose of an interface?
How to check if a list is sorted in java?
What are the 6 mandatory procedures for iso 9001?
Why is string builder not thread safe?
Write a function for palindrome and factorial and explain?
0 Answers Honeywell, Huawei, Zomato,
Define how does a try statement determine which catch clause should be used to handle an exception?
class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?
What is argument in java?