can anyone explain the meaning of Void in java..even though i referred many books,not able to understand clear as i am a learner..
Parvathiapril8
0
Newbie Poster
Recommended Answers
Jump to PostA method can return a value, in which case you specify the type of the returned value in the method header, eg
String convertToString() // returns a Stringbut some methods do not return anything, so where you would normally specify the return type, you use the keyword "void" to …
Jump to Post21310051: Java is very case sensitive: void and Void are not the same.
We can't really provide a complete and correct answer until the OP states whether he meant void or Void
Jump to Post"Java" includes the API, and the standard API includes a class
Void
It's no different from "class" vs "Class"https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html
All 10 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
21310051
0
Newbie Poster
syncster31
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
syncster31
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
Orieba Hedwig
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.