
Asked in TCS
What is a constructor? Can it be called without creating an object?
Anonymous
1y
Constructor is used to initialize the class propert.contsructor is automatically cal without creating an instance of object.constructor have no return type.
GAURAV MISHRA
1y
Constructor is special method (member method ) which automatically call when object is created. without calling object constructor not call.
Help your peers!
Add answer anonymously...
Top Web Developer Interview Questions Asked at TCS
Q. How do you maintain company coding standards?
Q. Write a program to find the date n days from today.
Q. Write a SQL query to join the emp and dept tables.
Interview Questions Asked to Web Developer at Other Companies
Top Skill-Based Questions for TCS Web Developer
Web Development Interview Questions and Answers
250 Questions
JavaScript Interview Questions and Answers
250 Questions
CSS Interview Questions and Answers
250 Questions
HTML Interview Questions and Answers
250 Questions
Data Structures Interview Questions and Answers
250 Questions
PHP Interview Questions and Answers
100 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

