81 .
If there is private method in class. Which type of binding present over there?
A.Static
B. Dynamic
C. Both A and B
D.None of these
View AnswerAns: Static
82 .
Which is the correct one.
A.int a = Math.pow(n,2);
B. float a = Math.pow(n,2);
C. long a = Math.pow(n,2);
D.double a = Math.pow(n,2);
View AnswerAns: double a = Math.pow(n,2);
83 .
Which of the following is true in Java ?
A.Static methods can only access static members (data and methods)
B. Non-static data members can be accessed by static methods
C. Static methods cannot be overloaded.
D.Static data members can only be accessed by static methods.
View AnswerAns: Static methods can only access static members (data and methods)