answersLogoWhite

0

Why do you use static key word in Java programming?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

Static is a keyword,when u execute a method in class file loaded, execute the first this method..

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do you use static key word in Java programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is native variable in java?

native is a key word used in java method. there is no variable as native in java


What is static key word?

It is one of the constant key word and it is used only in run time


Key answers of exercises and program exercises in java programming chapters 1-4 by DS Malik?

Key_answers_of_exercises_and_program_exercises_in_java_programming_chapters_1-4_by_DS_Malik


How java use extern key word which is used in C plus plus?

No extern keyword in Java.


Why java does not support include?

The purpose of the include key word is to include the functionality of some class into the class under consideration. The same feature is provided in Java using the import statement. Hence there is no use of the include key word in Java.


What is keywords?

Keyword represent something like reserved words. This includes syntactic words etc...For eg: in C if, else, while , printf, static,extern all these are key words.Some editors show these words in different color to make the suer understand that these are key words


How can one learn CGI programming?

One can learn about CGI programming from books. They can search books from amazon using CGI programming as a key word. They can also learn about CGI programming from websites like cgi101.


Why do you use static key word in java main method?

Static means that something is done at compile time instead of when the object is instantiated, so you would therefore call a static method (doSomething()) through the class name rather than the object name. class A{ public static void B(){ } public void C(){ } } Let's say A instance = new A(); To access B you would say A.B(), while to access C you would say instance.C();


How do you identify key in java program?

Private keys and their associated public-key certificates are stored in password-protected databases called keystores. A keystore can hold the keys of many potential signers. Each key in the keystore can be identified by an alias which is typically the name of the signer who owns the key. The key belonging to Rita Jones might have the alias "rita"


What are associative arrays in Java programming language?

Java does not support associative arrays. However, you can achieve the same thing using a map.


This key word causes an object to be created in memory?

To instantiate a object, we use the new keyword in Java, which creates an object in memory.


What is the definition of java program?

I will assume that you mean in a broad spectrum in this answer. Java is intended to be a cross-platform full programming language. It has the three (or four) control structures necessary for any program: Sequence, Descisions, and Loops (and Modules, functions and classes). This means that it can make programs similar to anything that you have come across, albeit, some tricks may need to be used for some of them. Also, due to a huge GUI API, Java is also very capable in creating programs similar to WordPad or many of the games you may find online. As a matter of fact, a lot of those games are written in Java. No. I don't work for Oracle or Sun Microsystems, I just like Java...