WhatsApp can be installed on any device. iMessage requires specific hardware, i.e. an Apple iPhone.
It is always possible not to use either and just communicate by SMS (which I prefer myself, but as I understand it WhatsApp came to be used here in Belgium because phone plans are expensive and SMS are still limited/paid on most plans) but that's a different matter.