3i Infotech Placement: Sample Questions 234 - 236 of 1245
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 234
Explanation
- User defines an exception or custom exception by creating an exception class. This exception is thrown using throw keyword.
- Exceptions are already set to trigger on pre-defined conditions such as “divide by zero” triggers Arithmetic Exception.
Question 235
Explanation
- ‘ps’ command on linux is one of the basic commands for viewing the processes running on the system.
- Provides a snapshot of the current processes along with detailed information like user id, cpu usage, memory usage, command name.
- Does not display data in real time like top or htop commands.
- Simpler in features and output but provides essential process management tool.
Syntax:
ps [options]
- Related commands include pgrep that supports searching for processes and pkill that kills processes based on a search.
Question 236
Explanation
Stubs
- A stub is a proxy for a remote object that runs on the client computer.
- Forwords a client՚s remote method invocations to skeleton.
- It forwords them on to the appropriate server objects.
Skeleton
- A skeleton is a proxy for a remote object that runs on the server.
- Retuns the results of server method invocations to clients via stubs.