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 |
£¢®£ž›;=9:B9<::C = ADITHI HOW TO GET?
what is the maximam caption size of lebel
how to remove header and footer in jcl using sort utility
what is different betweet class and interface in java?
2 Answers Microsoft, Sun Microsystems,
what is delegate and how works delegate and event.
6.int x=10; float y=20; a=x%2=? b=y%2=?
What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?
___ method used to move a recordset pointer in nth position in DAG.
Define distributed queries. can you explain me as soon as possible
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
what is difference between oracle and pl/sql
Difference between debugging, running, executing of an application