

(a) a subclass of the same package (b) a non-subclass of the same package Java Multiple Choice Questions 27) A protected member can be accessed in, (c) The same method name and same number and type of parameters with different return type (b) The same method name with different number of parameters (a) The same method name with different types of parameters Java Multiple Choice Questions 26) An overloaded method consists of, (e) Class declaration, package declaration, import statement. (d) Class declaration, import statement, package declaration (c) Import statement, class declaration, package declaration (b) Import statement, package declaration, class declaration (a) Package declaration, import statement, class declaration Java Multiple Choice Questions 25) The correct order of the declarations in a Java program is, (a) finalizer() (b) finalize() (c) finally()
.jpg)
Java Multiple Choice Questions 24) The java run time system automatically calls this method while garbage collection. (d) submarine must be the name of a class (c) dive must be the name of an instance field. Java Multiple Choice Questions 23) You read the following statement in a Java program that compiles and executes. (e) Janitors working for Sun Micro Systems are required to throw away any Microsoft documentation found in the employees’ offices. (d) The JVM checks the output of any Java program and deletes anything that doesn’t make sense. (c) When all references to an object are gone, the memory used by the object is automatically reclaimed. (b) Any package imported in a program and not used is automatically deleted. (a) The operating system periodically deletes all the java files available on the system. Java Multiple Choice Questions 22) What is garbage collection in the context of Java? (e) It is another name for comments written within a program.
ELEMENTS OF PROGRAMMING INTERVIEWS PYTHON PDF DOWNLOAD CODE
(d) It is the code written within the instance methods of a class. (c) It is another name for a Java source file. (b) The type of code generated by a Java Virtual Machine. (a) The type of code generated by a Java compiler. Java Multiple Choice Questions 21) What is byte code in the context of Java? Java Programming Multiple Choice Questions
