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
What is string length in java?
How many types of literals are there in JAVA?
Why inputstreamreader is used in java?
How to make a read-only class in java?
What is the purpose of interface?
Can we override a variable in java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
When is finally block not called?
When should I use singleton pattern?
What is the difference between array and array list in java?
What is return type in java?
How do you escape a string?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Can a abstract class be defined without any abstract methods?
Is there any difference between synchronized methods and synchronized statements?