The document outlines a 2-hour Object Oriented Programming with Java course, including 15 questions covering topics such as the definition of Java, garbage collection, the Java virtual machine, variable declaration, arrays, object-oriented programming terminology, access specifiers, data types, running a Java program, required declarations, interfaces, abstract classes, class vs abstract class, and the three OOP principles with an explanation of polymorphism and its types. The course is for level HND 2 students specializing in Software Engineering and computer graphics at the Ministry of Higher Education's Department of Computer Engineering in Douala, Cameroon.
The document outlines a 2-hour Object Oriented Programming with Java course, including 15 questions covering topics such as the definition of Java, garbage collection, the Java virtual machine, variable declaration, arrays, object-oriented programming terminology, access specifiers, data types, running a Java program, required declarations, interfaces, abstract classes, class vs abstract class, and the three OOP principles with an explanation of polymorphism and its types. The course is for level HND 2 students specializing in Software Engineering and computer graphics at the Ministry of Higher Education's Department of Computer Engineering in Douala, Cameroon.
The document outlines a 2-hour Object Oriented Programming with Java course, including 15 questions covering topics such as the definition of Java, garbage collection, the Java virtual machine, variable declaration, arrays, object-oriented programming terminology, access specifiers, data types, running a Java program, required declarations, interfaces, abstract classes, class vs abstract class, and the three OOP principles with an explanation of polymorphism and its types. The course is for level HND 2 students specializing in Software Engineering and computer graphics at the Ministry of Higher Education's Department of Computer Engineering in Douala, Cameroon.
2. Explain the concept of Garbage collection in java. (1mark) 3. Give the role of the java virtual machine. (1mark) 4. List the 3 parts involve in the declaration of variables in java. (1.5 marks) 5. What is an array? (1mark) 6. List and define 4 java object oriented programming terminologies. (2marks) 7. What are the various access specifiers for Java classes? (2marks) 8. What is the difference between double and float variables in Java? (1mark) 9. Is JDK required on each machine to run a Java program? Justify your answer. (1mark) 10. What are the two parts in executing a Java program and their purposes? (1.5 marks) 11. What declarations are required for every Java application? (1mark) 12. Define interfaces and give the differences between interfaces and abstract classes. (1.5 marks) 13. Give the difference between class and abstract class. (1mark) 14. What are the three OOPs principles and define them? (1.5 marks) 15. Explain the concept of polymorphism in programming and give 3 types of polymorphism (give specification of each method). (2 marks)