Tricky Java

Java have some tricky questions. Java provide special functionaly in some cases. Most of time we are told java is completly object oriented but java not fully object oriented. Thats kind of special scenerio.

what is the output?

public class Test{

    public static void main(String[] args){                                                                   System.out.println(45+5 + "=" +45+5);
    
}

}

List of some tricky and special questions:
 

  1. Different forms of main() method
  2. "+" between Integer and String
  3. Overloading main() method in Java

Related Articles

post a comment