Java Programming Language Java Data Types and Variables - MCQ
⚠ Report Question ✓ Question Verified
class A{ public static void main(String args[]){ int x; x = 10; if(x == 10){ int y = 20; System.out.print("x and y: "+ x + " " + y); y = x*2; } y = 100; System.out.print("x and y: " + x + " " + y); } }
Learn More MCQ Questions from Java Programming Language Java Data Types and Variables - MCQ
Test your knowledge of Java data types and variables with these multiple choice questions. Learn about the different data types in Java and how to use variables to store values. Take the quiz now!