A) TrueB) False
Latest Answer: Yes it is true ... Stack works on the Startegy of First In First Out ...
A) Push and Pull B) Push and PopC) Pop and Pull D) Pop and Peep
Latest Answer: Push and Pop ... is the answer ...
In Java it is possible to define two or more methods within the same class that share the same name, as long as their parameter declarations are different
A) TrueB) False
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
Latest Answer: With method overloading Java supports polymorphism. ...
When an overloaded method is invoked, Java uses the type and/or number of arguments as its guide to determine which version of the overloaded method to actually call
A) TrueB) False
A) OneB) TwoC) ThreeD) FourExplanation: In general, there are two ways that a computer language can pass an argument to a subroutine. The first way is call-by-value. The second way an argument can be passed
In the Call-by-value methods of passing an argument to a Subroutine, the value of an argument is copied into the formal parameter of the subroutine
A) TrueB) False
A) TrueB) False
Latest Answer: false ...
A) TrueB) False
Latest Answer: Ans : true. Recursion is the process which calls itself. ...
What is the output of the following? // A simple example of recursion.class Factorial { // this is a recursive method int fact(int n) { int result; if(n==1) return 1; result = fact(n-1) * n; return result; }} class Recursion { public static void main(String args[]) { Factorial f = new Factorial(); System.out.println("Factorial of 3 is " + f.fact(3)); }}
A) Factorial of 3 is 3B) Factorial of 3 is 6C) Factorial of 3 is 9D) None of the above
View page << Previous 2 3 4 5 [6] 7 Next >>

Go Top