Fresh Interview Questions

- Difference between abstract class and interface
- Types of constructors
- Can you call parametrized constructor from default constructor and vica versa
- In how many ways you can create an object
- Why do we write public static void main()
- Explain method overloading and method overriding
- What will be the default order of execution of tests in TestNG
- How do you control order of exeuction in TestNG- priority, dependsOn
- How do you take screenshot in selenium
- How do you handle exceptions
- Name some of the frameworks you have worked with- TestNG, Junit, POM
- Some features of Java 1.8
- Differences in Selenium 2 & 3
- What version of Jenkins you use
- What version of Maven
- Explain your automation framework
- Explain static keyword
- What type of data members / method can't be inherited to child class - Private
- How do you access private data members of parent class in child class ?
- Final keyword.
- Is it necessary to intialize the final variable
- A class has main method, Class B inherit it but doesn't have any body. What will happen if you create object of class B
- Primitives and non-primitive data types



Comments

Popular posts from this blog

Why are you looking for a change

String, StringBuilder, StringBuffer (Mutable vs Immutable Objects)

Brief cover letter