Java Basics

🏷️ Basic
🆓 100% Free Certificate 10 Questions 5 minutes 9 Views

This test evaluates your foundational knowledge of Java, covering syntax, variables, loops, and basic object-oriented programming concepts. To strengthen your Java fundamentals, explore Java Tutorial on W3Schools, dive into Java Tutorials at JavaTpoint, and watch this beginner-friendly Java Course on YouTube.

1 What is Java?
2 Which keyword is used to define a class in Java?
3 What is the correct way to declare a main method in Java?
4 Which data type is used to store whole numbers from -2147483648 to 2147483647?
5 What is the purpose of the 'final' keyword in Java?
6 Which of these is NOT a primitive data type in Java?
7 What is the default value of a boolean variable in Java?
8 Which operator is used to compare two values for equality?
9 What is the correct way to create an object in Java?
10 Which package is automatically imported in every Java program?