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 is the marker interface used 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?
What is http client in java?
What is the meaning of immutable regarding string?
Can we override the private methods?
What are loops in java?
What is the differences between heap and stack memory in java? Explain
What is the use of private static?
How many bytes is a url?
Why java strings are immutable in nature?
List some oops concepts in java?
What is an example of character?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
Explain the difference between jvm and jre?
What is method in java ?