Q61. Is a delegate a type-safe functions pointer?
Ans. Yes
Q62. What is the return type of an event in .NET?
Ans. There is No return type of an event in .NET.
Q63. Is it possible to specify an access specifier to an event in .NET?
Ans. Yes, though they are public by default.
Q64. Is it possible to create a [...]
Tags:C Interview Question | 50 views
2. When we use void return type?
We use it, when the method need not to return a value.
A void return type indicates that a method does not return a value
3. What is an loop Statement?
A Loop statement is one which execute a certain set of statement repeatedly until certain condition satisfied.
For example::
int i=0;
do{
cout << “hai”;
i=i++;
}while(i<5)
O/P:: [...]
Tags:JAVA Questions | 42 views
Introduction to Java Classes
A class is nothing but a blueprint or a template for creating different objects which defines its properties and behaviors. Java class objects exhibit the properties and behaviors defined by its class. A class can contain fields and methods to describe the behavior of an object.
Methods are nothing but members of [...]
Tags:JAVA Questions | 44 views
What restrictions are placed on method overloading?Two methods may not have the same name and argument list but different return types.
What is the difference between String and StringBuffer?
String objects are immutable whereas StringBuffer objects are not. StringBuffer unlike Strings support growable and modifiable strings.
Can a private method of a superclass be declared within a subclass?
Sure. [...]