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 |
What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids
what is the difference between set and append?
Difference between abstract class and Interfaces in Java
9 Answers Nest, Persistent, Yantro Software,
What are the main principles of OOP?
how to hide prompts
write a program for finding the union of two integer array in java?
why Java is not purely object oriented?
in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?
What is test execution and when will we start execution please send me one example for this question
Even if all fields are initialized also in a program, I am getting COBOL/400 decimal data error .why is it coming?
what do you man by firmware
what are wrapper classes