Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
• Classes and Objects: A Deeper Look quiz 1. Object Oriented Programming aims to Encapsulates data (attributes) and methods (behaviors) ... • TRUE 2. Classes are not units of Java programming and functions, or methods, are not encapsulated in classes • FALSE 3. public key is using when variables and methods accessible to clients of the class; • TRUE 4. What i the purpose of "this" keyword? • Allows an object to refers to itself 5. What is the role of class contructor? • to initialize instance variables of a class object 6. In Java we can use the overloaded constructor ... • TRUE 7. Every class must have at least 2 constructors: normal constructor and overloaded constructor • FALSE 8. Accessor method (“get” or query method) Allow clients to MODIFY private data; • FALSE 9. Composition: Class contains references to objects of other object? • TRUE 10. What the role of garbage collection in java? • Returns memory to system 11. Access to a class’s public static members: Qualify the member name with the class name and a dot (.) e.g., Math.random() 12. The way we can use te static import ... • import static packageName.ClassName.staticMemberName • import static packageName.ClassName.*; 13. final keyword indicates that variable is modifiable: • FALSE 14. WE can not import package in program ... • FALSE 15. If a variable or a method does not have member access modifier -> package access • TRUE