What will be output of this simple java program ?
Click button below to answer the quiz :
Reference : GoogleTEDTalks
© 2015 – 2016, https:. All rights reserved. On republishing this post, you must provide link to original post
0 of 1 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 1 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Reference : GoogleTEDTalks
© 2015 – 2016, https:. All rights reserved. On republishing this post, you must provide link to original post
#
This code will not compile. It gives the error “The type HashSet is not generic; it cannot be parameterized with arguments “.
#
It is a good question.this question replace set.remove(i-1) to set.remove((short)(i-1)) when answer is 1
#
Even i by itself is type “short”, the calculation result of “i-i” is type int, which need explicitly cast to “short”, the set cannot find the Integer “i-1” in Short Set.
#
#
#
what is the GoogleTEDTalks where this question appears?
#
This question was discussed in a TED talks video and is available in YouTube. The video was shared with id GoogleTEDTalks. You could search for GoogleTEDTalks in YouTube and should en able to get it.