What is static variable and static method?
Answer Posted / rajiv sairam
Static variable can be modified, only a single copy is maintained for the objects,it stays in memory until we delete it manually,accessing is directly with the class name
Static method can access only static data with the class name, no need of creating objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain try and catch keywords in java?
What is the difference between preemptive scheduling and time slicing?
When is the arraystoreexception thrown?
Can you make a constructor final?
Can the interface be final?
What is a boolean structure?
How many types of flags are there?
What are assembly attributes?
What is the difference between a window and a frame in java programming?
Can constructor be static or final?
Can we override private method in java?
Write a program to find the greatest of three numbers in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
Explain the difference between protected and default access.
What is array list in java?