Q.5. What is the syntax for declaring a variable in Java? Leave a Comment / By learncodingforfree.com / May 22, 2026 A Q.5. What is the syntax for declaring a variable in Java? Category: Java data types interview questions and answers data_type variable_name;