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...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

TCS OOPS Interview Questions
Questions Answers Views Company eMail

is java purely oop Language?

49 61398

What are the OOPS concepts?

106 323559

What is a class?

32 33427

What is encapsulation?

17 22549

What is the difference between pass by reference and pass by value?

12 41767

What are the advantages of inheritance?

26 98656

When will a constructor executed?

5 20731

Can we have a private constructor ?

12 51680

Tell us about yourself.

47 126861

what is virtual function?

26 62607

what is the main difference between c and c++?

386 683317

Definition of Object Oriented Programming in single line?

33 55920

What is the outcome of the line of code "cout< 16 22986


sir plz send me a set of questions that been frequently held in written examination during campus selection.

2067

Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

2146

Post New TCS OOPS Interview Questions


TCS OOPS Interview Questions


Un-Answered Questions

What are required configurations for JSF framework?

78


What is meant by a context menu in a cad software?

1108


What is string concatenation?

1000


Why widget does not show up in the sidebar?

172


What is Visualforce in Salesforce?

510


How CRR(What is CRRrate hike will help to reduce inflation rate

2071


Tell me how the result set of mysql be handled in php?

988


What is the purpose of the queue ?

416


Q.1what is E1? Q.2what is diffrence b/w RNC & BSC? Q.3what is STM? Q.4what is LAC & CI? Q.5 what is HSN, MAIO, MA Group & frequency hopping?

2289


When semiconductor fuse does save thyristor in each cycle of conduction? Why under voltage setting keep less in SPRS and more in DC drive?

2101


What is lazy code?

402


gearless vehicle used which type of gearbox and do this work????

2189


What is the benefit of using the formula in excel sheet?

666


What is authentication on server?

410


What are special characters c++?

1044