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 to add Servlet-api.jar file into eclipse 3.3.2 ?
what is the difference between primary key and unique key?
In staad pro, how can we design ROOF SLAB?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
Write a program to swap the content of two variables without using a third variable.
How should a programmer decide whether to use a macro or a subroutine to accomplish a given logical function
1 Answers R V College of Engineering, University of Jordan,
smal talk is pure object oriented or not?
what is the basic and unique feature of dotnet
why not instantiating servet using new operator?
define profiler???
what is lazy loading in hibernate?Explain in detailed manner?
why Java is not purely object oriented?