Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


If your team member writes code with lots of static
variables and static methods, will it cause any side effects?

Answers were Sorted based on User's Feedback



If your team member writes code with lots of static variables and static methods, will it cause any..

Answer / 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

If your team member writes code with lots of static variables and static methods, will it cause any..

Answer / eknath wagadre

Yes!!! We can define the several static method and variable
and those are vary easy to access by Class Name or by class
instance.

But Only problem with static method and variable is that
there is Maximum chance of data corruption. bcz of static
method and variable are accessed by diff-2 thread at the
same time. Mean at the same time one or more then one thread
can change the value of static variable.

So conclusion is this if we can define more static variable
and method so and our program have hug line of code at that
time programs output may be inconsistent.

Is This Answer Correct ?    0 Yes 0 No

If your team member writes code with lots of static variables and static methods, will it cause any..

Answer / ravi jain

Abhinav pls explain more.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

What are the three best choices for a development environment?

0 Answers  


What is the internal implementation of set in java?

0 Answers  


What is hashset in java?

0 Answers  


How many times garbage collector will invoke an object?s finalize() method?

4 Answers  


What is the largest data type in java?

0 Answers  


What is JVM and is it platform independent?

0 Answers  


What an i/o filter in java programming?

0 Answers  


what is mean by thread lock?

2 Answers   Infosys, TCS,


Why only one Class is public in one file? Explain in details. Thanks in Advance.

12 Answers  


What are assembly attributes?

0 Answers  


What is scope & storage allocation of static, local and register variables? Explain with an example.

0 Answers   IBS,


What is an escape character in java?

0 Answers  


Categories