Home Help Java V void Java Keyword



void Java Keyword
Posted on: November 18, 2009 at 12:00 AM
The void is a keyword defined in the java programming language

void Java Keyword

     

The void is a keyword defined in the java programming language. Keywords are basically reserved words which have specific meaning relevant to a compiler in java programming language likewise the void keyword indicates the following :

-- The void keyword in java programming language represents a null type.
--
The void keyword in java programming language is often used as the return type of a called method to indicate that this called method is not going to return any value to the calling method.

Example to use the void keyword in a class:

public class Cla

{

public void doit();

{

<statements>
<statements>
<statements>

return;

}

}

Related Tags for void Java Keyword:


More Tutorials from this section

Ask Questions?    Discuss: void Java Keyword  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.