A sharia court judge in the conservative northeastern state of Terengganu on Wednesday sentenced the man, a construction worker, to six strokes of the cane and a fine after he pleaded guilty to the offence, state news agency Bernama reported.