Technical Interview Questions and Answers :: Syntel Inc.
- Select All
- Oracle PLSQL
- Java
- C++
- WebMethod
- C
- DBMS
- Operating System
- Oracle Apps HRMS
- Networking
- Soft. Engineering
- HR Question in TR
- Data Structure
- .NET
- SQL
- header functions contains functions which we can use in programs and functions are declared in header files.
51 / 161
main() function is the predefined function of the stdio.h library . main() function is responsible for the execution of the programs.
52 / 161
IN PASS BY VALUE COPY OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CANNOT BE MODIFIED.
53 / 161
ADDRESS OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CAN BE MODIFIED
54 / 161
It is possible to pass some values from the command line to your C programs when they are executed. These values are called
55 / 161
56 / 161
No Discussion on this question yet!
57 / 161
Method Overloading:
A method with changed formal parameters will lead to implementing method overloading.
int calculateSum(int i,int j)
float calculateSum(float i,int j)
double calculateSum(double i,int j)
float calculateSum(int i,float j)
Method Overriding:
The method with the same signature but with changed implementation lead to method overriding and that can occur in a parent child relation of classes. A method defined in parent class can be overridden in its child class with different implementation from its base class.
1. Pointers are supported in C++ while not in Java. The memory management is done automatically with help of part of JVM called Garbage Collector.
2. Multiple inheritance is not supported in Java but supported in C++.
3. There are no structures and unions in Java.
4. There is no scope resolution operator in Java (::).
5. There are no destructors in Java like C++.
6. There is no virtual keyword in Java because all non-static method use dynamic binding.
58 / 161
When an object is sent a message then it does not know itself what type it is, the runtime environment will decide about function calling over an object. This feature of connecting an object with its associated message at runtime is known as Polymorphism or Late binding or Dynamic binding.
59 / 161
Method Overloading:
A method with changed formal parameters will lead to implementing method overloading.
int calculateSum(int i,int j)
float calculateSum(float i,int j)
double calculateSum(double i,int j)
float calculateSum(int i,float j)
Method Overriding:
The method with the same signature but with changed implementation lead to method overriding and that can occur in a parent child relation of classes. A method defined in parent class can be overridden in its child class with different implementation from its base class.
1. Pointers are supported in C++ while not in Java. The memory management is done automatically with help of part of JVM called Garbage Collector.
2. Multiple inheritance is not supported in Java but supported in C++.
3. There are no structures and unions in Java.
4. There is no scope resolution operator in Java (::).
5. There are no destructors in Java like C++.
6. There is no virtual keyword in Java because all non-static method use dynamic binding.
60 / 161
super is a keyword in java used to refer to the base class in inheritance