Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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 41597

What are the OOPS concepts?

106 284452

What is a class?

32 20256

What is encapsulation?

17 15376

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

12 35069

What are the advantages of inheritance?

26 87027

When will a constructor executed?

5 17902

Can we have a private constructor ?

12 44374

Tell us about yourself.

47 106173

what is virtual function?

26 52530

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

386 553916

Definition of Object Oriented Programming in single line?

33 43586

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


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

1333

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

1452

Post New TCS OOPS Interview Questions


TCS OOPS Interview Questions


Un-Answered Questions

How do I stop a linux job?

344


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1146


Explain java coding standards for classes or java coding conventions for classes?

403


What are jsp and servlets?

296


What types of shares can a company issue to raise long term funds?

352






What is the use of try square?

453


How to count duplicated values in a column in ms sql server?

311


write script for bitmap image?

1333


How to upload more than 2GB file from External Source to SAP?

584


Why do you link tables in access?

289


What is the purpose of polymorphism?

392


What command manages floating ip addresses in openstack?

3


Can user-defined object be declared as static data member of another class?

363


What is the disadvantage of a star topology?

1


What is ms word example?

195