×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
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 Answer
Ans: 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 Answer
Ans: 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 Answer
Ans: Static methods can only access static members (data and methods)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17