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

Write in Short Short Answer▾

What is user defined exception?

Edit

Explanation

Understanding of Java Exception Parts
  • 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

Describe in Detail Essay▾

What is ‘ps’ command for?

Edit

Explanation

Undderstanding of Process Status with Ps Command
  • ‘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

Describe in Detail Essay▾

What is the functionality stubs and skeleton?

Edit

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.
The Functionality Stubs

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.
The Functionality Skeleton