answersLogoWhite

0


Best Answer

The void keyword is used to show that a method will not return a value.

// no return type

public void setX(int x) {

this.x = x;

}

// returns an int

public int getX() {

return x;

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

This refers to the starting point of any Java program. The main method is the place where the execution of any java progam can start.

  • The keyword public means that it can be publicly accessed and invoked.
  • The keyword static means that it can be invoked without created an object of the containing class
  • The keyword void means that this method does not return any values
This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Void is a keyword in Java. It is always used in method declarations. When used in the line that declares a method, it signifies the fact that the method will not return any value. The JVM will not expect the method to return anything.

Ex: public static void main(String[] args) {}

This answer is:
User Avatar

User Avatar

Wiki User

16y ago

When you attach a void to a method, it means that method doesnt have to return anything. It will then just execute when called upon.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

enpty rerory space is returned so that the

developers An can Jtili2e it.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the meaning of java void keyword?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is literal in java programming?

Literal in java are L, F, null, true, false These act as keyword(have special meaning in java) but these does'nt comes under the category of Java Keyword.


What does a void method do?

In Java, this keyword is used to specify that the method has no return value.


Is check a keyword in java?

No, 'check' is not a keyword in java language.


Void in java?

Void is a keyword in Java. It is always used in method declarations. When used in the line that declares a method, it signifies the fact that the method will not return any value. The JVM will not expect the method to return anything. Ex: public static void main(String[] args) {}


How does the use of the 'void' keyword differ in C plus plus vs. C?

It doesn't. Void has the same meaning in both.


Is float is a keyword in java?

yes, float is keyword and data type in java


What does the verify keyword do in Java?

"verify" is not a Java keyword. I believe the link, in related links, has the complete list of Java keywords.


What is foreign keyword in java?

There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.


Is 'void' a data type in java?

No. The void keyword is used to signify that a method will not return any objects. For example, if you type in "double", you'll need a return statement that has a double. So "void" means that there will be nothing returned.


What is java's keyword for the integer data type?

"int" is the keyword for integer


How does the final keyword affect the behavior of Object type in Java?

In Java, the final keyword specifies that the object created cannot be further redefined or derived.


The keyword indicates that a method does not return a value?

void