When you are holding the ball it has potential energy and when you through it it will then have kinetic energy as it go's up then it will pause for a brief sec. and then that 's when it has the greatest potential energy and then when it falls back down is when it has the greatest kinetic energy. The mechanical energy would be when you through the ball.
Hope this helps:)