Which of the following statements accurately describe the use of access modifiers within a class definition? (Select multiple) a. They can be applied to both data & methods b. They must precede a class's data variables or methods c. They can follow a class's data variables or methods d. They can appear in any order They must be applied to data variables first and then to methods
Latest Answer: The fact that class Object declares a finalize method means that the finalize method for any class can always invoke the finalize method for its superclass. This should always be done, unless it is the programmer's intent to nullify the actions of ...
Latest Answer: instanceof is used to test an object's typeExample:Pizza myPizza = new Pizza();boolean test = myPizza instanceof Pizza; ...
Explain the difference between inheritance and composition, and when/why one is preferable over the other
Latest Answer: Actually to use connection objects in the connection pool we need datasource object .if you take weblogic , if u want to contact to connection pool , u must get data source object. Thats all. ...
Latest Answer: Log4j API is an Apache project. It provides you the logging mechanism. which allows you to direct the debug & error (basically) statments onto a particular file/database/messaging system etc. Its provide a much cleaner way to store the output statment ...
Write a program in Java that reads a text file, "in.txt", that contains a list of integers separated by spaces. After reading the integers, the program stores them into a singly linked list and
What happenes if exception occur in finally block?
Latest Answer: Finally is just a method, if an exception occurs in finally block the program will terminate. So, U just put a try - catch block inside the finally block. Are explicity you have to catch the exception.finally { ...
View page << Previous 2 3 4 5 [6] 7 8 9 10 11 Next >>

Go Top