What is basic concept of static in java ?
Answer / narayanarao bp
Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.
| Is This Answer Correct ? | 15 Yes | 0 No |
Can we rethrow the same exception from catch handler?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
Is arraylist ordered in java?
How do you check if two given string are anagrams?
explain the concept of virtual method invocation in polymorphism in detail?
What is finally and finalize in java?
What is application system?
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
What is the meaning of immutable regarding string?
What is the maximum size of array in java?
When garbage collector invokes object?s finalize() method?
Can a serialized object be transferred via network?