Ashutosh Kumar Singh
Ashutosh Kumar Singh
Framework
1. Explain the BDD Framework ? [correct]
Feature file, Step Defination, Test Runner file
integrated with POM
HTML reporting
5. How do you set the dependency between the TC in TestNG framework ? [partially correct]
DependOnMethod
Selenium
1. code to take a sreenshot [correct]
2. How to drag and drop a particular image in selenium?
Java
1. What is String? Why is it immutable? Explain design pattern of it.[partially correct]
Its a character array, specified in “”. its immutable because its value cannot be changed.
using literals(string constant pool is utilized) and new keyword(Heap memory)
2. Difference between String buffer and String builder?[incorrect]
String Buffer and String builder are mutable
String builder is thread safe and String buffer is not thread safe
3. Can we Initialize multiple Catch blocks?[correct]
Yes
4. What is Method Overloading and Method Overriding?[correct]
M overloading – Same method name but different number of Arguments in same class
M overriding – same method name defined in super class and child class
5. Difference between Final Finally and Finalize [correct]
Final variable cannot be changed, final class cannot be inherited, final method cannot be overridden
Finally is block which is always be used whether a exception is there ot not
Finalize is used for Garbage collectors
6. what is a static method?[correct]
Belongs to class level, donot require object to call, static variable can be aaccessed using static
method
Program
WAP to find factorial of a number using using recursion[correct]