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


Please Help Members By Posting Answers For Below Questions

How do you write a good declaration?

724


What is append in java?

894


In which order the iterator iterates over collection?

809


What do you understand by a Static Variable?

921


What are void methods?

838


What will happen if a thrown exception is not handled?

783


How many static init can you have?

948


What is serial version uid and its importance in java?

838


Is java call by reference?

748


Can we extend immutable class?

790


What is a lightweight component?

823


Does java set allow duplicates?

803


Can we have any code between try and catch blocks?

776


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

787


Can keyword be used as identifier?

758