• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between

 
Tony Ben
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is difference between Void and void .
 
Henry Wong
author
Marshal
Pie
Posts: 21190
80
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tony Ben:
what is difference between Void and void .


A method with a void return type is pretty much a method that returns nothing.

The java.lang.Void class is a class that is used to represent the void return type -- mainly needed by the reflection library.

Henry
 
memati bas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
void is the data type
Void is the wrapper class of this type
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic