GCNs excel in zero-day vulnerability prediction by modeling source code as various graph representations, such as Abstract Syntax Trees (AST), Control Flow Graphs (CFG), and Data Flow Graphs (DFG), to capture intricate semantic and structural information.