91. Method overloading does not allow :
A. Difference in no. of arguments.
B. Difference in Arguments data type.
C. Difference in return type.
D. Difference in method name.
(d)
92. If a common property is referred by many objects of same class, then that property must be declared as _ in class.
A. static
B. void
C. transient
D. final
(a)
93. Which is a wrong combination of keywords ?
A. public abstract
B. static abstract
C. static final
D. None of these
(b)
94. How can you read the content of a class file on console ?
A. java
B. javap
C. javac
D. javadoc
(c)
95. How many type of Primitive Data Types exist in Java?
A. 4
B. 6
C. 8
D. 12
(c)
Ans 70 will be int. Remember return 0. Here 0 is int
Dear Anish,
If a return value isn’t required, declare the function to have void return type. If a return type isn’t specified, the C compiler assumes a default return type of int. In a main function, the return statement and expression are optional.