3i Infotech Placement: Sample Questions 558 - 559 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 558

Edit

Describe in Detail

Essay▾

What is an interface?

Explanation

The Abstract Class Implements the Interface
  • An interface is a reference type in java- a collection of abstract methods.
  • An interface without definitions for all functions specifies the set of methods that the inheriting class has to implement.
  • Interface achieves abstraction and multiple inheritance in java representing a IS-A relationship.

Syntax:

  1. Interface <interface_name>
  2. {
  3.     // declare constant fields
  4.     // declare methods that abstract
  5.     // by default.
  6. }

Question 559

Edit

Write in Short

Short Answer▾

What is make command in Unix?

Explanation

  • Utility for building and maintaining groups of programs.
  • Determine automatically the pieces of a large program to be recompiled, and issue recompilation commands.
  • Make is not limited to programs- it can describe any task where some files must be updated automatically from others upon change.
  • This is done using a “make file” that describes the relationships among files, and the commands for updating each file.
  • In a program, executable file is updated from object files, which in turn are compiled from source files. These relationships are expressed in “make file”

Developed by: