Logical Interview Question and Answer
Q. 1- Is the code compiles ? If yes then what will be the output ?
Output is: 3 4
Q. 2-Is the code compiles ? If yes then what will be the output ?
Output is: null
Q. 3-Is the code compiles ? If yes then what will be the output ?
Output is: Hello_selsinvers
Q. 4-Is the code compiles ? If yes then what will be the output ?
Output is: 1, Test App
Q. 5-Is the code compiles ? If yes then what will be the output ?
Output is: Error in line number is 22 for java.lang.Error Then after output is C
Q. 6-Is the code compiles ? If yes then what will be the output ?
Output is: 9 7 7 7 7
Q. 7-Is the code compiles ? If yes then what will be the output ?
Output is: Error in line number is 17 for java.lang.ArithmeticException: / by zero
Q. 8-Is the code compiles ? If yes then what will be the output ?
Output is: 1 2 1
Q. 9-Is the code compiles ? If yes then what will be the output ?
Output is: MANOJ
NOJ
Q. 10-Is the code compiles ? If yes then what will be the output ?
Output is: 2 String is Equals
Output is: 3 4
Q. 2-Is the code compiles ? If yes then what will be the output ?
Output is: null
Q. 3-Is the code compiles ? If yes then what will be the output ?
Output is: Hello_selsinvers
Q. 4-Is the code compiles ? If yes then what will be the output ?
Output is: 1, Test App
Q. 5-Is the code compiles ? If yes then what will be the output ?
Output is: Error in line number is 22 for java.lang.Error Then after output is C
Q. 6-Is the code compiles ? If yes then what will be the output ?
Output is: 9 7 7 7 7
Q. 7-Is the code compiles ? If yes then what will be the output ?
Output is: Error in line number is 17 for java.lang.ArithmeticException: / by zero
Q. 8-Is the code compiles ? If yes then what will be the output ?
Output is: 1 2 1
Q. 9-Is the code compiles ? If yes then what will be the output ?
Output is: MANOJ
NOJ
Q. 10-Is the code compiles ? If yes then what will be the output ?
Output is: 2 String is Equals