Submitted Questions

  • Guess the output of the following program

    Try to guess without running the program. {geshibot language="c"}public class IntegerClassExampleThree { public static void main(String[] javalatte) { Integer i = 400; Integer j = 400; if(i==j){ System.out.println("i==j is equal"); }else { System.out.println("i==j is not equal"); } } } public class IntegerClassExampleFour { public static void main(String[] javalatte) { Integer...

    mani

    • May 28th, 2014

    Int value ends at 127 so upto 127 the hash code for int value is same.the answer is not equal and equal

    onkar

    • Dec 28th, 2013

    1. First of all in one java file you can not have two public classes. 2. Second you will have to run a particular public class "java classname" and then its main method would run. Note - If there i...