Java Real Exam Questions and Correct Answers Rated A
Java Real Exam Questions and Correct Answers Rated A What do real world objects contain? - Correct Answer state and behavior Where is a software object's state contained? - Correct Answer fields (Java) or variables (C++) Where is a software object's behavior exposed? - Correct Answer methods (Java) or functions (C++) Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data... - Correct Answer encapsulation A blueprint for a software object is called a... - Correct Answer class Common behavior can be defined in a ___ and inherited into a ___ using the ___ keyword. - Correct Answer superclass, subclass, extends A collection of methods with no implementation is called an ___. - Correct Answer interface A namespace that organizes classes and interfaces by functionality is called a ___. - Correct Answer package The term API stands for ___? - Correct Answer application programmer interface The term "instance variable" is another name for... - Correct Answer non-static field - instance variables are specific to an object The term "class variable" is another name for ___. - Correct Answer static field - class variables are fixed and global across all instances of the class A local variable stores temporary state; it is declared inside a ___. - Correct Answer method - for example a counter in a loop int i=0; A variable declared within the opening and closing parenthesis of a method signature is called a ____. - Correct Answer parameter
École, étude et sujet
- Établissement
- JAVA
- Cours
- JAVA
Infos sur le Document
- Publié le
- 18 février 2026
- Nombre de pages
- 12
- Écrit en
- 2025/2026
- Type
- Examen
- Contenu
- Questions et réponses
Sujets
-
what do real world objects contain
-
where is a software objects state contained
-
where is a software objects behavior exposed