Technical Interview Questions and Answers :: TCS
- Select All
- SQL
- Java
- C++
- WebMethod
- Informatica
- C
- DBMS
- Operating System
- Soft. Engineering
- Data Structure
- Networking
- Hadoop
- HR Question in TR
21 / 158
1. C supports pointers, Java doesn't.
2. Multiple inheritence is supported in C but not in Java.
3. Java has built-in support for threads whereas C doesn't have built-in support for threads.
4. No destructors in Java but C has them.
5. C supports both method and operator overloading, Java only supports method overloading.
22 / 158
Pointer is a variable which are stored in the address of the another variable
23 / 158
No Discussion on this question yet!
24 / 158
No Discussion on this question yet!
25 / 158
This pointer is called current object of the class.
26 / 158
No Discussion on this question yet!
27 / 158
. Dot operator is used for accessing class members,
-> operator used for accessing pointer in the class
28 / 158
Single entity showing multiple behaviours.
Example: Mobile can be used to take photos , internet usage,text documents creation etc.,
Two types of polymorphism 1.static polymorphism ( method over riding)
2. Dynamic polymorphism ( method over loading)
29 / 158
No Discussion on this question yet!
30 / 158
Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class.