If you want to be a java developer , then you must have faced core java technical round during the recruitment process .There may be few tricky java interview questions , but sadly , most of the students find it the hardest round in the interview process . The problem lies in the practicing part but it can be overcome . The solution is to prepare must know questions of the technical round . So knowing those questions gives us an edge over others . So here I am sharing coding/programming questions and answers of core java which are frequently asked by the interviewer in Technical round of Java programming language.
Read Also : Top 25 frequently asked core java interview questions
Due to slow internet connection , some of our readers were not able to view all the questions . So ,
we decided to split this image rich post into two pages.
Let us discuss one by one ,
* Interviewer shows you the following code
Is the code compiles ? If yes then what will be the output ?
Answer >>
Compile : Yes
Output : String
Next Question >>
Is the code compiles ? If yes then what will be the output ?
Answer >>
Compile : No , Error at line 23
Reason : Method is ambiguous
Next Question >>
Is the code compiles ? If yes then what will be the output ?
Answer >>
Compile : Yes
Output : ArithmeticException
Next Question >>
Is the code compiles ? If yes then what will be the output ?
Answer >>
Compile : Yes
Output : Java Hungry Blogspot
Next Question >>
Is the code compiles ? If yes then what will be the output ?
Answer >>
Compile : Yes
Output : I am born new
Next Question >>
Is the code compiles ? If yes then what will be the output ?
Answer >>
No comments:
Post a Comment