I need help with this please. Thank you. True / False (10 points)-enter T or F a
ID: 3716206 • Letter: I
Question
I need help with this please. Thank you.
True / False (10 points)-enter T or F after the I. Buffering speeds up the writing of binary files. 2. A constructor has a return type. 3. A class may extend at most one abstract class. 4. A method with no body must be declared as abstract. 5. Objects instantiated from an abstract class may not have any fields. 6. Biglnteger is not the best data type to use for financial calculations. then furniture.getPrice) is a valid method call 8. An interface contains one or more abstract and concrete methods. 9. An interface may be implemented by more than one class. In a try-catch statement with multiple catch blocks, more general exceptions are placed after more specific exceptions. 10.Explanation / Answer
1)True Buffering will create the temporary buffer and it will copy the content to that buffer once it filled then it will write out the content, it will increase efficiency and speed.
2)False constructor are internally having the void return type and we can't get the return value from the constructor also because the constructor is invoked at the time of creating of class
Class obj = new Class()==>where can we store the return value? so it's not possible
3)True java doesn't support multiple inheritances (extending more than one class).
4)False actually a method without a body will not throw any error but it's no use without a body to make it as abstract.In the question, if "must" is there the answer is false otherwise true
5)False an object instantiated from an abstract class may have fields.
6)it depends.If you are using a large number of values and if those values are fixed then Big Integers are helpful because Big integers are immutable otherwise long is good because if you want to change the values every time Big integers occur[y more memory
7)False you are calling from array object itself you need to call from array element object like
furniture[0].getPrice()
8)False interface allows only method declaration, not method definitions so concrete methods won't allow
9)True An interface can be implemented by more than one class and one class can implement more than one interface
10)True more specific exception we need to put first then only if that exceptions these will catch otherwise general exceptions only catch these exceptions so no use of specific exception catch blocks so first specific exception and next general exceptions