Who wrote the surprise symphony and what kind of piece is it?

Franz Josef Haydn wrote it. It's a symphony.