Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Violet Nelson   on Oct 22 In Java Category.

  
Question Answered By: Farah Khan   on Oct 22

Yes, the object  will be overrided if you instantiate an object of another class
from a static  method, actually from all methods.
If you want it stay same over all the instances of the Class, declare a static
varible and instantiate it in the variable declaration.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on instantaite objects from frequently called static methods Or get search suggestion and latest updates.


Tagged: