Java Interview Questions

Sort: Popular Date
Sort: Popular Date

“List all anagrams in a file. Assumptions: case-insensitive, a-z characters only, one word per line. For example, if the file contains dog, cat, ddd, goo, act, god -- output dog, god, act, cat”

“Find the second largest element in a Binary Search Tree”

“Write a function in Java that will take a sorted array of ints, possibly with duplicates, and compact the array removing all the duplicate numbers. That is, if the contains the numbers…”

“Java Code to implement 5 places (code)”

“Diff b/w var1 == var2 and var1.equals(var2)
Which method needs to be implemented along with equals()?”

1 of 1 found helpful

“Write a code to find out if two string words are anagrams”

“public class WhichReturns{
  public String whichReturns(){
    try{
         return "1";
    }finally{
         return "2";
    }

   public static void main(String argv…”

“How would you count the number of words in a string consisting of uneven number of spaces between words( not dictionary words)? With and without library functions.”

“Write the function that calculates price of the cup of coffee where price of the condiments depends on size of the coffee cup. For example milk cost 10 c for small cup 15 c for medium and 20 c for…”

“What is the difference between Java and Java Enterprise Edition?”

110 of 211 Interview Questions