answersLogoWhite

0


Best Answer

void

User Avatar

Wiki User

โˆ™ 2010-09-14 00:35:20
This answer is:
User Avatar
Study guides

Mixture

1 card

Class

โžก๏ธ
See all cards
4.35
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
23 Reviews

Add your answer:

Earn +20 pts
Q: The keyword indicates that a method does not return a value?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does a void method do?

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


What is the return keyword in Java?

this is the type of the value that the method returns to its caller


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) {}


Difference in using a method that return value and method that does not return value in object orinted programming?

A method that return a value should have a return statement. The method signature should indicate the type of return value. While in the case of a method that does not return a value should not have a return statement and in the signature, the return type is void. When using a method that doesn't return a value, a programmer can not get a value from that function, but instead, it can only change variable values and run other methods.


What is the use of void in java language?

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) {}


What is void in Java?

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; }


Which Keyword is used to return some value from a function?

return var_name; e.g int fun() { int x=...; return x; }


What are return statements in java?

You declare a method's return type in its method declaration. Within the body of the method, you use the return statement to return the value.


What is wrong with not writing a return statement in value-returning method in java?

It is a syntax error, because a value returning method must return a value, and not writing a return statement with a value is tantamount to returning without a value.


What is the purpose of a return value?

To return a value as output of processing the current method that is being executed.


What is mutable keyword in c plus plus?

mutable keyword can only be applied to non-static and non-constant member of a class. It indicates that the corresponding data member can be modified even from the constant function. (Constant function: is a function marked with the keyword const) For eg. class x { private: mutable int query_count; int value; public: int get_value() const { query_count++; return value; } }; In the code above member query_count is marked with keyword mutable. Hence it's value can be modified from constant function get_value().


What is a void return type in java?

If a method has void as its return type it means it does not return anything. There is no need for a return statement, but you can use an empty return statement to return from the method.

People also asked