Difference between static methods, static variables, and static classes in Java.
Answer / nashiinformaticssolutions
A variable, method, or class can be made static by using the static keyword. A static class cannot be instantiated. When both objects or instances of a class share the same variables, this is referred to as static variables. Static methods are simply methods that refer to the class in which they are written.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why Over riding is Run Time Polymorphism?
How big is a 64 bit float?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What does singleton mean in java?
List any five features of java?
Which java version is latest?
What is the main use of generics in java?
how many ways to create Thread and which one is good? runnable interface ot Thread class?
Why do we need singleton?
What is a parameter in matrices?
Why const and goto are reserved keyword in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?