TRADING - SELLING OF STOCKS

If a particular stock bought in multiple trades, when selling FIFO (first in first out) method is mandatory or can I sell any of the stock.