Both single and multiline comments are supported in Apex code:
Integer i = 1; // This comment is ignored by the parser
Integer i = 1; /* This comment can wrap over multiple lines without getting interpreted by the parser. */