If your team member writes code with lots of static
variables and static methods, will it cause any side effects?
Answer Posted / abhinav
If the code is small, then there wont be any significant
problems, but if the program is huge, then it can severly
hamper the program performance. use of static
variables/methods are one of the biggest reasons for memory
leaks
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How do you write a good declaration?
What is append in java?
In which order the iterator iterates over collection?
What do you understand by a Static Variable?
What are void methods?
What will happen if a thrown exception is not handled?
How many static init can you have?
What is serial version uid and its importance in java?
Is java call by reference?
Can we extend immutable class?
What is a lightweight component?
Does java set allow duplicates?
Can we have any code between try and catch blocks?
What does the ‘static’ keyword mean? Is it possible to override private or static method in java?
Can keyword be used as identifier?