Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| |||||||||||
Interview Questions and Answers - Order By Newest | |||||||||||
![]() | |||||||||||
| |||||||||||
Ans. We can use PowerMockito.verifyStatic for this purpose PowerMockito.verifyStatic(VerificationModeFactory.times(1)); <Class_Name>.<static_method_name>; | |||||||||||
![]() | |||||||||||
![]() ![]() ![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
| |||||||||||
Ans. No. When we declare a method static, it means that "this belongs to class as whole and not particular instance". The whole purpose of constructor is to initialize a object and hence there is no sense having static constructor. | |||||||||||
![]() | |||||||||||
![]() ![]() ![]() ![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
| |||||||||||
Ans. Yes the value of a static variable can be changed. It's the final keyword that restrict the modification of value not static. | |||||||||||
![]() | |||||||||||
![]() ![]() ![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() or What is the difference between String , StringBuilder and StringBuffer ? | |||||||||||
![]() | |||||||||||
![]() or Explain OOPs Principles or Explain OOPs Concepts or Explain OOPs features or Tell me something about OOPs | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
| |||||||||||
![]() | |||||||||||