Difference between static methods, static variables, and static classes in Java.
Answer Posted / 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 |
Post New Answer View All Answers
What is thread start?
What is the exact difference in between Unicast and Multicast object?
Implement two stacks using a single array.
What are the data types supported by java? What is autoboxing and unboxing?
Is void a type?
What is a nested structure?
Can inner class final?
What is the difference between the final method and abstract method?
design an lru cache in java?
What is method overloading and method overriding?
What is classpath?
What restrictions are placed on method overloading?
What is use of set in java?
Write a program to search a number in the given list of numbers.
Why enumeration is faster than iterator?