Void Wrapper class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashi1290
    New Member
    • Feb 2008
    • 6

    Void Wrapper class

    What is the use of Void Wrapper class in java... when we have void return type.....and there no.....much methods and fields in that? when it use in real time?
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by ashi1290
    What is the use of Void Wrapper class in java... when we have void return type.....and there no.....much methods and fields in that? when it use in real time?
    You may read this
    .

    I hope it helps,
    Sukatoa

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by sukatoa
      You may read this
      .

      I hope it helps,
      Sukatoa
      I don't think so because that article never even mentions the Void type. The type
      is needed primarily for the reflection/introspection framework. One of the methods
      of, say, the Method class returns the return type of a method. What if the method
      doesn't return anything, i.e. it is a void method? The method returning the return
      type of a method can't suddenly return nothing at all. It returns a class object that
      reflects the type of a return type of a method. Hence it returns the class Void.

      kind regards,

      Jos

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        Originally posted by JosAH
        I don't think so because that article never even mentions the Void type.
        Hopefully this...

        Jos, about the spiral model of developing an application, what can you suggest about that? I've heard it from a research representation in the campus...

        Will you advice me what kind of developing cycle should i use? There are many...
        But, for a starter like me, what can you recommend?

        Comment

        Working...