i
Coforge
Filter interviews by
I applied via Naukri.com and was interviewed in Nov 2022. There were 4 interview rounds.
Coding and theory question was there specially from collection framework.
Method overloading is creating multiple methods with the same name but different parameters. Method overriding is creating a new implementation of an existing method in a subclass.
Method overloading is used to provide different ways to call the same method with different parameters.
Method overriding is used to provide a new implementation of an existing method in a subclass.
Explicit wait is a type of wait in Selenium W...
Explanation of String Builder and String Buffer and how to reverse a string without them.
String Builder and String Buffer are classes in Java used for manipulating strings efficiently.
String Builder is not thread-safe while String Buffer is thread-safe.
To reverse a string without String Builder or String Buffer, we can use a loop to iterate through the string and append each character to a new string in reverse order.
E...
BDD cucumber code for login to an application
Create a feature file with scenario outline for login
Write step definitions for each step in the scenario outline
Use page object model to interact with login page elements
Use Given-When-Then format for each step
Example: Given user is on login page, When user enters valid credentials, Then user should be logged in
I applied via Walk-in and was interviewed in Aug 2024. There were 2 interview rounds.
Top trending discussions
OOps concept is a programming paradigm based on the concept of objects, which can contain data and code.
OOps stands for Object-Oriented Programming
It focuses on creating objects that interact with each other to perform tasks
Encapsulation, inheritance, and polymorphism are the key features of OOps
Examples of OOps languages include Java, C++, and Python
Yes, I am a team player.
I believe in collaboration and working towards a common goal.
I actively participate in team discussions and contribute my ideas.
I am willing to help and support my team members whenever needed.
I prioritize effective communication and ensure everyone is on the same page.
I am open to feedback and constructive criticism from my team.
I have successfully worked in cross-functional teams in my previou
I applied via Referral and was interviewed before Jan 2022. There were 3 interview rounds.
English, math, logical, singing dancing no coding no technical
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
A constructor is a special type of method in a class that is automatically called when an object of that class is created.
Constructors have the same name as the class they belong to
They are used to initialize the object's state or perform any necessary setup
Constructors can have parameters to customize the initialization process
Example: public class Car { public Car(String color) { this.color = color; } }
Yes, a static method can be overridden in Java using the concept of method hiding.
In Java, static methods cannot be overridden in the traditional sense like instance methods.
When a subclass defines a static method with the same signature as a static method in the superclass, it is called method hiding.
Method hiding does not follow polymorphism and is resolved at compile time based on the reference type.
Example: class...
Yes, a static local variable can be created inside a static method.
Yes, a static local variable can be declared inside a static method in programming languages like C++.
Static local variables retain their values between function calls.
Example: static void myStaticMethod() { static int count = 0; count++; }
String memory allocation is dynamic and depends on the length of the string.
String memory allocation is dynamic and can change based on the length of the string.
In Java, a String object is stored in the heap memory.
Each character in a String typically takes up 2 bytes of memory.
String objects in Java are immutable, meaning once a String object is created, it cannot be changed.
Yes, you can create a static method inside an abstract class or interface.
Static methods can be defined in interfaces since Java 8.
Static methods in interfaces are used for providing utility methods that are not tied to any specific instance of the interface.
Static methods in abstract classes can be used for common functionality that does not require an instance of the class.
The parent class of Java is the Object class.
All classes in Java are directly or indirectly derived from the Object class.
The Object class is the root class in Java's class hierarchy.
It provides methods that are common to all objects in Java, such as toString(), equals(), and hashCode().
Window Handles in Selenium are unique identifiers used to handle multiple browser windows in a Selenium test script.
Window Handles are unique alphanumeric strings assigned to each browser window opened by Selenium.
They are used to switch between different browser windows during a test script execution.
Window Handles can be obtained using getWindowHandles() method in Selenium.
Example: Set
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Java OOPs concepts are used in automation framework design for better code organization and reusability.
Encapsulation: Used to hide the internal implementation details of classes and provide access through methods.
Inheritance: Allows for code reuse by creating parent-child relationships between classes.
Polymorphism: Enables methods to behave differently based on the object they are called on.
Abstraction: Helps in defin...
OTP can be handled by generating, sending, and verifying it in automated tests.
Generate OTP using a random number generator
Send OTP to the user via email, SMS, or any other communication channel
Verify OTP entered by the user against the generated OTP
To start Appium in automation, you need to install Appium server, set up desired capabilities, and run the server.
Install Appium server using npm install -g appium
Set up desired capabilities in your test script
Start the Appium server using the command appium
Types of mobile apps include native apps, web apps, and hybrid apps.
Native apps are developed for specific platforms like iOS or Android
Web apps are accessed through a web browser and do not need to be downloaded from an app store
Hybrid apps combine elements of both native and web apps
Examples include Instagram (native), Twitter (web), and Uber (hybrid)
Program to remove duplicate letters in a string
Iterate through the string and keep track of seen characters in a set
Append characters to a new string only if they are not already in the set
Return the new string without duplicate letters
Swipe action in mobile devices can be performed using swipe() method in Appium or TouchAction class in Selenium.
Use swipe() method in Appium to perform swipe action in mobile devices
Alternatively, use TouchAction class in Selenium for swipe action
Specify the start and end coordinates for the swipe action
Adjust the duration and speed of the swipe as needed
posted on 30 Dec 2024
Reverse a string using Java program and handle stale element in Selenium
Create a Java program to reverse a string using StringBuilder or char array
In Selenium, handle stale element exception by refreshing the element or using WebDriverWait
Example: Java program - input: 'hello', output: 'olleh'; Selenium - handle stale element by refreshing the element before interacting with it
My expected salary is based on my experience, skills, and the market rate for Automation Test Engineers.
I have researched the average salary range for Automation Test Engineers in this location.
I am looking for a competitive salary that reflects my expertise in automation testing.
I am open to negotiation based on the overall compensation package offered.
posted on 19 Nov 2024
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
based on 4 reviews
Rating in categories
Senior Software Engineer
4.8k
salaries
| ₹6.4 L/yr - ₹25.2 L/yr |
Technical Analyst
2.5k
salaries
| ₹9.5 L/yr - ₹38.4 L/yr |
Software Engineer
2k
salaries
| ₹2.2 L/yr - ₹9.5 L/yr |
Senior Test Engineer
1.8k
salaries
| ₹4.7 L/yr - ₹19.3 L/yr |
Technology Specialist
1.2k
salaries
| ₹11.8 L/yr - ₹42 L/yr |
Capgemini
Cognizant
Accenture
Infosys