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 Interview Questions
269,316 developer interview questions shared by candidates
Convert : person_First_Name to personFirstName
Find the bug in code. int sum; for (int i=1; i<11; ++i) sum=sum+i; printf("%d",sum);
Given an array of n coins, determine the minimum number of flips for all coins to have the same side (all heads or all tails).
Given an array of numbers [1,3,3,5,9,4,1,10,9,7,2,7], Write a php function that will print numbers that are not duplicated in array. [5,4,10,2]
Why are manhole covers round?
Write a Java program that takes a 2D bitmap (represented as a 1D array of integers), and reverses it about its vertical axis.
Matrix sorted in increase order by row and column; find a given number x if it appears in the matrix
1. Write a function to implement the "cat" command in Linux 2. Find the first character that only appears once in the whole string
Given a positive integer N, write a function to return a list of the first N fibonacci numbers in order. For example, if N=5, the output list is 0 1 1 2 3.
Viewing 311 - 320 interview questions