Java Question 1) What Will Be The Output of Following Program?
Java Question 1) What Will Be The Output of Following Program?
A)9
B)8
C)Run time error
D)Compilation error
Ans) D
a) 0
b) 1
c) Runtime error
d) classname@hashcode in hexadecimal form
Ans)D
14) What is the process of defining two or more methods within same
class that have same name but different parameters declaration?
a) method overloading
b) method overriding
c) method hiding
d) none of the mentioned
Ans)A
a) 10 20
b) 20 10
c) 20 40
d) 40 20
Ans)A