public class WhichReturns{ public String whichReturns(){ try{ return "1"; }finally{ return "2"; } public static void main(String argv){ System.out.println("Return val: " + WhichReturns.whichReturns()); } }
Developer Advisor Interview Questions
710,959 developer advisor interview questions shared by candidates
What will be the sizeof the following structure on a 32-bit machine: struct s { int i; char c; long d; void *p; int a[0]; };
How to find that a given number is even or odd without using (if, else, any loop, conditional operator ,switch). You can use only a "%" sign.
Given a stack containing values, implement min() operation to find minimum of all the values in O(1) time. Push() and Pop() should run in O(1) as well.
Convert : person_First_Name to personFirstName
When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called.
Why is your average pointer around 8 only?
Find the bug in code. int sum; for (int i=1; i<11; ++i) sum=sum+i; printf("%d",sum);
Timed leetcode style questions. Rotate an array 90 degrees, implement an hashmap that allows for changing keys and updating all values.
Logical Reasoning Goal: The person to reach 50 first wins. Rules: Play with another person, say a number, and the other person can say any number upto 10 over your number.
Viewing 1321 - 1330 interview questions