-
Math ML
What it is Math ML?
-
What will happen if a cursor is opened again before closing?
A cursor is opened.After fetching few rows. it is opened again before closing it.What will be the result?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Why statement printf("%d%d%d",++a,a,a++) in C and = a++; System.out.printf("%d%d%d",++a,a,a++) in Java gives different output?
Because in C++ function argument associativity is right to left but in java it is left to right
-
Why statement a = a++; gives different output in C++ and java ?
Because C++ solve postfix ++,-- after assignment (=) operator.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Garbage collection (object lifetime)
explain details of concept of"object iceland" in garbage collection (object lifetime) in core java
-
-
-
-
-
-
-
-
-
How will you print % character?
A) printf(“%%”)B) printf(“\%”)C) printf(“%”)D) printf(“%%”)
-
main()
{
int i;
clrscr();
printf("%d", &i)+1;
scanf("%d", i)-1;
}main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; }
A) Runtime error. Access violationB) Compile error. Illegal syntaxC) None of the aboveD) Runtime errorExplanation: printf( ) prints address/garbage of i, scanf() dont have & sign, so scans address for i +1, -1 dont have any effect on code.
-
-
-
-
-
-
what is difference between array & arraylist?
arraylist is resizable where as using array it is not possible.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
What is the difference between declaring a variable and defining a variable?
Declaring a variable means describing its type to the compiler but not allocating any space for it. Defining a variable means declaring it and also allocating space to hold the variable. You can also initialize a variable at the time it is defined.
-
How are this() and super() used with constructors?
this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.
-
What are the two major components of JDBC?
One implementation interface for database manufacturers, the other implementation interface for application and applet writers.
-
-
-
-
-
What modifiers can be used with a local inner class
A local inner class may be final or abstract.
-
What is the Collection interface
The Collection interface provides support for the implementation of a mathematical bag -an unordered collection of objects that may contain duplicates.
-
What is the difference between a while statement and a do statement
A while statement checks at the beginning of a loop to see whether the next loop iterationshould occur. A do statement checks at the end of a loop to see whether the next iterationof a loop should occur. The do statement will always execute the body of a loop at leastonce.
-
What modifiers may be used with an interface declaration
An interface may be declared as public or abstract.
-
-
Is &&= a valid Java operator
No, it is not.
-
Does a class inherit the constructors of its superclass
A class does not inherit constructors from any of its superclasses.
-
Can an object be garbage collected while it is still reachable
A reachable object cannot be garbage collected. Only unreachable objects may begarbage collected..
-
What is the % operator
It is referred to as the modulo or remainder operator. It returns the remainder of dividingthe first operand by the second operand.
-
25. Is sizeof a keyword
The sizeof operator is not a keyword.