Java Puzzles


In this article, you will see some Java insight with the help of programs that we call puzzles. These puzzles help you understand the core concept that we might sometime overlooked. 


Guess the output?




Guess the output?





Guess the output?
(a) Object
(b) double array
(c) None of the above





Guess the output?
(a) Object
(b) double array
(c) None of the above
(d) Compiler Error





Guess the output?
(a) woof
(b) woof woof
(c) It varies
(d) Compile Time Error





Guess the output?
(a) true true
(b) false false
(c) true false
(d) false true





Guess the output?
(a) Default Constructor named Constructor
(b) Default Constructor
(c) Named Constructor
(d) Compile/Runtime Error




Guess the output?
(a) Hello 
(b) Compile/Runtime Error
(c) Hello
world!
(d) world!





Guess the output?
(a) I'm constructor
(b) Compile time Error
(c) Runtime Error





Guess the output?
(a) 2
(b) 3
(c) 0
(d) Compile/Runtime Error





Guess the output?
(a) I'm constructor
(b) Compile time Error
(c) Runtime Error













1 comment:

  1. I am technology Enthusiast. Your blog is really awesome, attractive and impressive. I like the way you think. it is very useful for Java SE & Java EE Learners. Your article adds best knowledge to our Java Online Training in India. or learn thru Java Online Training in India Students. or learn thru JavaScript Online Training in India. Appreciating the persistence you put into your blog and detailed information you provide. Kindly keep blogging.

    ReplyDelete