3i Infotech Placement: Sample Questions 265 - 266 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 265

Edit

Write in Short

Short Answer▾

What is the use of analysing the tables?

Explanation

Use the ANALYZE statement to collect statistic, for example

  • Collect or delete statistics about an index or index partition, table or table partition, index-organized table, cluster, or scalar object attribute.
  • Validate the structure of an index or index partition, table or table partition, index-organized table, cluster, or object reference.
  • Identify migrated and chained rows of a table or cluster.

Question 266

Appeared in Year: 2004

Question

MCQ▾

A class can be converted to a thread by implementing the interface ________

Choices

Choice (4)

a.

Runnable

b.

Thread

c.

All of the above

d.

Question does not provide sufficient data or is vague

Answer

a.

Explanation

  • A class can be converted to a Thread by implementing the Runnable Interface in the “java. lang” package.
  • To implement Runnable interface, a class needs only to implement a single method called run () .
  • Thread can be created by extending the Thread class also.
  • Since Java does not allow multiple inheritance- a class inheriting from Thread cannot inherit from any other class.
  • So it is always better to create a thread by implementing Runnable interface.
  • To run this implementation class, create a Thread object, pass Runnable implementation class object to its constructor.
  • Call start () method on thread class to start executing run () method.
  • Implementing Runnable interface does not create a Thread object, it only defines an entry point for threads in our object allowing us to pass the object to the Thread (Runnable implementation) constructor.

Developed by: