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













No comments:

Post a Comment