It is a fruit...

However legally for trade and tax purposes it is classified as a vegetable.


So both.