Monday, August 27, 2018

Java Interview Questions For Selenium Webdriver - Business Office 1

| Monday, August 27, 2018
PART 1

1 : What is object inwards java?

Answer : Object Is an Instance of degree in addition to it has its ain dry soil in addition to behavior. In existent footing nosotros tin say, Dog is object of Animal degree which accept unlike dry soil similar breed, color, name, hungry, etc in addition to behaviour  like wagging tail, fetching, barking etc.

2 : What is class?

Answer : H5N1 degree is the pattern or nosotros tin tell template from which private objects are created.

3 : What is constructor?

Answer : Constructor is a code block simply similar a method which is used to initialize the dry soil of an object. It volition live on invoked at the fourth dimension of object creation to gear upwardly the value for object. VIEW DETAIL

4 : What is default constructor?

Answer : If at that spot is non whatsoever constructor inwards degree hence coffee compiler creates default constructor. It is no declaration constructor which initializes whatsoever uninitialized fields to their default values.

5 : Constructor returns whatsoever value?

Answer : Yes. It volition provide event of electrical flow degree (However nosotros tin non role provide type amongst constructor).

Related Posts