As there is no chiral carbon in the first structure but there is one chiral carbon in the second structure and thus the second compound is optically active.