Java Interview Questions For Selenium WebDriver - Part 1

PART 1

1 : What is object inwards java?

Answer : Object Is an Instance of shape together with it has its ain land together with behavior. In existent the world nosotros tin say, Dog is object of Animal shape which accept unlike land similar breed, color, name, hungry, etc together with deportment  like wagging tail, fetching, barking etc.

2 : What is class?

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

3 : What is constructor?

Answer : Constructor is a code block merely similar a method which is used to initialize the land of an object. It volition locomote invoked at the fourth dimension of object creation to cook the value for object. VIEW DETAIL

4 : What is default constructor?

Answer : If in that place is non whatever constructor inwards shape together with thus coffee compiler creates default constructor. It is no declaration constructor which initializes whatever uninitialized fields to their default values.

5 : Constructor returns whatever value?

Answer : Yes. It volition provide representative of electrical current shape (However nosotros tin non role provide type alongside constructor).

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post