Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It's Java Progrmming..... Question 1 0.1 pts Java will accept Unix-style forward slashes when specifying folders, even on Windows. O True O False > Question

It's Java Progrmming.....image text in transcribedimage text in transcribedimage text in transcribed

Question 1 0.1 pts Java will accept Unix-style forward slashes when specifying folders, even on Windows. O True O False > Question 2 0.1 pts What does the File instance method listFiles() return, when called on a folder? O a File reference pointing to the first file or sub-folder in the folder O an array of File references, each pointing to a file in the folder O an array of File references, each pointing to a file or subfolder in the folder O a Folder object reference; we can use that to loop through the files Question 3 0.1 pts While ArrayLists seem to magically expand as we add elements to them, and let us easily delete from the middle of them, they are implemented with ordinary arrays which do not offer support for either. O True O False Question 4 0.1 pts Generics in Java... o provide a way to write code that will work with any class, without modifying code can work with primitive data types as well as objects are limited to a single type parameter have limitations including the inability to create new objects of the generic type are easy to abuse and therefore suggest we do additional compiler-assisted checks to be careful > Question 5 0.1 pts When implementing a class meant to serve as a collection, it's typical to write an iterator to let clients loop through collection elements with minimal effort on their part. True O False Question 6 0.1 pts When implementing an iterator, we may want to offer for/each support. To do this... the collection class must implement the Iterable interface do nothing; support is automatic the collection class must implement the ForEach interface this can't be done; only Java's built-in collections can offer for/each support > Question 7 0.1 pts When writing code that directly works with the user, we may throw exceptions, just like we do in typical Supplier code. O True O False > Question 8 0.1 pts The purpose of a try/catch block is to intercept code that might "blow up" (terminate the running code) and handle it more gracefully. O True O False Question 9 0.1 pts Select the statements that are true about static variables They pertain to the class, not an object instance of the class They can be accessed using the name of the class, a dot, then the name of the variable they take up more memory than instance variables they can access variables of both static and instance type Question 10 0.1 pts Select all of the statements that are true about static methods they are "pure functions" that avoid dynamic dispatch and are therefore faster they can access instance data they can access static data their code can include the keyword "this" their code can include the keyword "super" they cannot be overriden

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

LO5 Describe job analysis and the stages in the process.

Answered: 1 week ago