Core Java Coding / Programming Questions and Answers : Part 2

Compile :  No ,  Error at line 8
Reason  :   Any  number starting with 0  is  an octal number 



Next Question >>    

Is the  code compiles ? If  yes then what will be the output ?



technical interview java frequently asked questions














Answer >>




Compile :  No , Error at line 6 
Reason  :   Type mismatch , can not convert from int to boolean  
                                                        


Next Question >>    

Is the  code compiles ? If  yes then what will be the output ?




core java technical round must know interview questions

































Answer >>




Compile :  Yes
Output  :   try 
                  catch
                  finally 



Next Question >>    

Is the  code compiles ? If  yes then what will be the output ?





interview questions for java




































Answer >>




Compile :  Yes
Output  :   try 
                  finally 






Next Question >>    

Is the  code compiles ? If  yes then what will be the output ?




interview questions images in java technical round




























Answer >>




Compile :  Yes
Output  :   Completed Counting . . . . . .  
                  Waiting to get End . . . . .      ( Infinite loop )



Next Question >>    

Is the  code compiles ? If  yes then what will be the output ?




coding interview question for core java



































Answer >>




Compile :  No , Error at  line 12
Reason  :  Local variable x  has not been initialized






Next Question >>    

Is the  code compiles ? If  yes then what will be the output ?




important core java technical interview questions


























Answer >>




Compile :  Yes
Output  :    abcd abc false
                   abcd abcd  true 



Here we only discuss the technical questions along with the answer .


Read Also :     Top 25 Most frequently asked java questions



Click here for Answers Explanation