InterviewSolution
Saved Bookmarks
| 1. |
Which of these methods is executed first before execution of any other thing that takes place in a program?(a) main method(b) finalize method(c) static method(d) private methodI had been asked this question in unit test.I want to ask this question from Method with Parameters topic in section Namespaces, Preprocessors and Networking of C# |
|
Answer» CORRECT answer is (c) static method Explanation: If a static method is PRESENT in the PROGRAM then it will be executed FIRST, then main will be executed. |
|