Professional Documents
Culture Documents
Java Tutorial Practice Questions - Updated
Java Tutorial Practice Questions - Updated
Write a simple java program that prints to the screen Hello World
2. Briefly explain what java comment mean
3. List and explain the major type(s) of java comment(s)
4. Mention 5 uses of Java
5. Explain briefly java operator
6. Mention and explain three (3) java logical operators with example for each and the result
output of the examples given
7. What do you understand by the Java arrays
8. Write java array code that has car as its variable and Volvo, BMW, Ford and Mazda
stored in variable car
9. Explain in detail Polymorphism in terms of OOP concept in Java
10. List six (6) application of OOPs concepts in Java
11. Elucidate five (5) advantage or benefit of OOPs concepts in Java
12. Mention the major way(s) in which encapsulation can be achieved or implemented in
java
13. Outline four (4) advantage of encapsulation in Java
14. Which of the following classes are tightly encapsulated?