why we use static with only main()class not with other class
Answers were Sorted based on User's Feedback
Answer / nadeem khokhar
actually we never write main m = new main();
so with static function or class we do not have to declare a new memory, those are directly accessible. and definitely i can use static keyword with other classes but then i cant make an object of that class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / boxofyuvi
Becoz the class which is stated as static will have the
first preference to execute....
| Is This Answer Correct ? | 5 Yes | 5 No |
how will you code the subfile which is in editing mode (multiple case subfile)?
How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?
Suppose we are doing 4 operations on database using service, first operation is successful but due to some reason remaining 3 operations are failed. I) is this transaction successful or not? ii) How can you give that error message to user?
how can i apply validation without using errorprovider in C# windows application
which one is the best practice using synchronization method or synchronization block
How to swap values between two variables without using a third variable?
24 Answers HCL, TCS,
To sorting array of 10 elements which sorting is best a)selection b)bubble c)tree sort
sample and simple coding where we get?
What is web.configuration? how is it work? & wht is use this?
what do you man by firmware
What is the use of Differ interface check box in Ship confirm?
what is difference between java and c#