why we use static with only main()class not with other class

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to find factorial of a number using functions

1235


what is the diffrence between software and hardware language?

1806


smal talk is pure object oriented or not?

1520


4. What is the need of START 0? Instead if can we use any other numeric? If we use what will happen?

1885


shall we execute our java programmes in jre

1750






i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......

1697


a characteristic of a multiprogramming is? a.simultaneous exe of pgm instr 4m 2 appli b.concurrent processing of 2 r more prgms c.multiple cpu s d.all the abov

1669


When we have two versions of the dot net installed how does the compiler know which version of DLL it has to select to an application.

1418


what is adodb??y it is used for connection of V.B and access??what is ado?dao?

1762


Explain three modes in which files can be accessed from python program

1313


what are other resources are needed for this mantis?

1508


Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,

1855


Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.

665


What is BASIS

1652


How to set on/off a group of indicators in a single statement?

1365