Powered by Blogger.

Monday 26 September 2016

Interview Question And Answer in java

No comments :
Q.1:   Is the code compiles ? If yes then what will be the output ?
Ans.
Output :      false
                  true
Q.2: Is the code compiles ? If yes then what will be the output ?
Ans.
Output :      s1
                  s2
                  s3
                  post 
                 StringBuffer 
                 stop
Q.3: Is the code compiles ? If yes then what will be the output ?
Ans.

Output :   r10
Q4. : Is the code compiles ? If yes then what will be the output ?
Ans.

Output:          run method output: s1.equals(s2) is true
                     run1 method output: S1==S2 is True
Q.5:Is the code compiles ? If yes then what will be the output ?
Ans.

Output :   2
Q.6:Is the code compiles ? If yes then what will be the output ?
Ans.

Output :          java.lang.NullPointerException.
Q. 7: Is the code compiles ? If yes then what will be the output ?
Ans.

Output:         15
                    o Manoj
Q.8: Is the code compiles ? If yes then what will be the output ?
Ans.

Output :     Run1---: 2
                 Run2+++: 6
                 Run Main Body : 6
Q.9: Is the code compiles ? If yes then what will be the output ?
Ans.

Output :             public int
                         object
                         String
                         4

No comments :

Post a Comment

Please Write a Message for Programming or something Related issues.