Once instantiated, a file object allows the user to add or delete a file\'s cont
ID: 3793852 • Letter: O
Question
Once instantiated, a file object allows the user to add or delete a file's contents? Scanner can be used to read the contents of a text file into a program? The public members of a super class can always be overridden in army of its subclasses? Which of the follows is NOT a typical use for a static member? (a) It can serve as a common location that all objects can reference (b) It can be used when an operation is not instance-dependent (c) It can be used to reduce space requirements in systems with restricted RAM space (d) It can be used to store the number of instances of an object independent of each object. (e) None of the above When a constructor in a subclass is tied to its superclass constructor (using super (), it is said to be: (a) Overloaded (b) Overridden (c) Chained (d) Static (e) None of the above Which one of the following statements is NOT TRUE of the enhanced for loop (a) Unlike the regular for loop, it uses the colon (:) not the semicolon (;) in its format (b) You can only count up with an enhanced for; you cannot count down (c) you can both get data out of an array using the enhanced for and set data into an array using enhanced for without using index (d) you do not need to go through every element in the array list you can break out of the enhanced for prematurely using the break. (e) None When the following code fragment is executed. Short num = (short) 42; Float ratio = num/100; The result of this calculation will be (a) 4 (b) 4.0 (c) 4.2 (d) A compile-time error (e) None of the above Which one of the following is NOT a method of the object class (a) done() (b) equals() (c) tostring() (d) final() (e) final() (e) none of the aboveExplanation / Answer
1.FALSE
once file instantiated we need to check whether the file exists or not which is very imp then only we can perform any operations
2.TRUE
scanner which is used to read the contents from file
3.TRUE
The public members can be overriden with inheritance
4.B
5none of the above
6.c
7.compile time error
8.d. Final()
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.