The first thing to note about this question is, it doesn't state what sort of wave we are talking about. However, it is pretty clear this must be an electromagnetic wave, because energy is quantised. For all other sorts of waves, like water waves, waves on strings, sound waves etc. the energy cannot be quantised with the relation shown. That is why it is possible, in the case of electromagnetic waves, to relate energy to wavelength through the equation that is given. This discovery, made by Max Planck in 1900, marks the end of the era of Classical Physics and the start of the era of Quantum Physics.