Technology Questions

Practice Technology MCQs with answers and explanations. Page 79 of 79.

Category
Interview
Topic
Technology
Page
79 / 79
Mode
Practice

Questions

Open any question to view the answer and explanation.

In Java I/O, how can you create a new empty file on the hard disk using an existing java.io.File object?
Open
View answer
In Java, which File class method is commonly used to create a new directory on the hard disk at the specified path?
Open
View answer
In Java, how can you check at runtime whether a given java.io.File object actually represents a regular file on the hard disk?
Open
View answer
In Java, how can you check whether a given java.io.File object represents a directory (folder) rather than a regular file?
Open
View answer
In Java, which java.io.File method is used to obtain the last modified timestamp of a file so that you can determine when it was last changed?
Open
View answer
In Java, which java.io.File method can you use to retrieve the names or entries contained inside a directory (folder) path?
Open
View answer
In operating systems and Java concurrency, what is a thread in the context of program execution?
Open
View answer
In operating systems, what is multitasking and what does it allow a computer to do from the user's point of view?
Open
View answer
In Java, what is multithreading and how does it differ from general operating system multitasking?
Open
View answer
In Java, what are the two standard ways to create and start a new thread for multithreading within an application?
Open
View answer
In Java multithreading, why is synchronization needed when multiple threads access shared data or critical sections of code?
Open
View answer
In Java exception handling, when is the finally block of a try-catch-finally construct executed in normal circumstances?
Open
View answer
In Java, how do you normally invoke a constructor to create a new object instance from client code?
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.