What is the output of the above program ? a) 12 b) 11 c) 10 d) program does not
ID: 3539360 • Letter: W
Question
What is the output of the above program ? a) 12 b) 11 c) 10 d) program does not compile e) throws exception f) none Both switch and if tests for boolean type. a) True b) False In Java every method need not be associated with an object. a) True b) False The finalize() method is called just prior to a) an object, variable or method goes out of scope. b) an object or variable goes out of scope. c) a variable goes out of scope d) before garbage collection e) none All classes in a source file should contain main method. a) True b) False The main method should be static for the reason a) it can be accessed easily by the class loader. b) it can be accessed by every method or variable without any hindrance. c) it can be executed without creating any instance of the class. d) none - See more at: http://way2java.com/java-questions/test-your-java-2/#sthash.xuAfoDrv.dpufExplanation / Answer
b) 11 b) False a) True c) a variable goes out of scope b) Fals b) it can be accessed by every method or variable without any hindrance
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.