Yes. The Java compiler sees that a double
is required and will unbox the wrapper.
That about wraps it up for this chapter. You may wish to review the following. Click on a subject that interests you to go to where it was discussed.
The next chapter will discuss standard input and output.