What happens when a class is made static like if a field or
member is made static it becomes class variable and is
shared by all the object of the class?
Answer / arvind verma
If a class is made static then we can access it's methods &
variables by using class name , no need to create class
object
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the use of singleton?
java Technical questions asked by JPMC
What happens when a class is made static like if a field or member is made static it becomes class variable and is shared by all the object of the class?
What are the restrictions imposed on method overriding?
Do you know why doesn't the java library use a randomized version of quicksort?
Explain about instanceof operator in java?
What is the difference between yielding and sleeping?
Can an integer be a string?
How to convert string to int in java?
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread?
Why are parameters used in functions?
How many ways can we create singleton class?