Filter interviews by
A basic TestNG framework for automation testing in Java, enabling structured test execution and reporting.
1. Setup TestNG: Include TestNG dependency in your project (e.g., Maven or Gradle).
2. Create Test Classes: Define test classes using @Test annotation.
Example: @Test public void testLogin() { ... }
3. Configure XML: Use testng.xml to define test suites and groups.
Example: <suite name='Suite1'><tes...
Code to print prime numbers in a given range
Iterate through numbers in the range and check if each number is prime
Use a nested loop to check divisibility of each number by numbers less than itself
Print the number if it is prime
Classes are blueprints for creating objects in object-oriented programming. Objects are instances of classes.
Classes define the properties and behaviors of objects.
Objects are instances of classes that can hold data and perform actions.
Classes can inherit properties and behaviors from other classes.
Objects can interact with each other by calling methods or accessing properties.
Example: Class 'Car' can have propert...
Access modifiers are keywords in programming languages that define the accessibility of classes, methods, and variables.
Access modifiers include public, private, protected, and default (package-private) in Java.
Public access allows classes, methods, and variables to be accessed from any other class.
Private access restricts access to only within the same class.
Protected access allows access within the same package ...
Abstract class is a class that cannot be instantiated and is used as a blueprint for other classes.
Abstract class can have abstract methods that must be implemented by its subclasses.
Real life example of abstraction is a vehicle class with abstract methods like start() and stop().
Subclasses like Car and Bike can implement these abstract methods in their own way.
Check if a number is divisible by 2 using modulo operator.
Use the modulo operator (%) to check if the remainder is 0 when dividing the number by 2.
If the remainder is 0, then the number is divisible by 2.
For example, if num % 2 == 0, then the number is divisible by 2.
Oops concept stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
Oops concept focuses on creating objects that contain data in the form of fields (attributes) and code in the form of procedures (methods).
It allows for the creation of reusable code and modular programs.
Encapsulation, inheritance, polymorphism, and abstraction are the four main principles of Oops conc...
A program to print prime numbers
Iterate through numbers and check if each number is prime
A prime number is only divisible by 1 and itself
Start checking from 2 onwards
Optimization: Only check up to square root of the number
Loop through numbers and print the even ones.
Use a loop to iterate through numbers
Check if each number is even using a modulo operation
Print the even numbers
For loop is used for iterating over a collection of items or executing a block of code a specific number of times.
For loop syntax: for(initialization; condition; increment/decrement) { // code to be executed }
Can be used with arrays to iterate over each element: for(int i=0; i
Can be used to repeat a block of code a specific number of times: for(int i=0; i<5; i++) { // code...
Implement a program to find the second largest element in an array of integers.
Iterate through the array and keep track of the largest and second largest elements.
Handle edge cases like when the array has less than 2 elements.
Consider sorting the array and returning the second last element for a simpler solution.
I applied via Naukri.com and was interviewed in Nov 2024. There were 3 interview rounds.
General aptitude and simple technical questions of SQL &js
I am a software developer with 5 years of experience in Java and Python.
Experienced in Java and Python programming languages
Worked on developing web applications using Spring framework
Familiar with Agile development methodologies
Yes, I am okay with the bond as long as it is reasonable and fair.
I am open to discussing the terms of the bond to ensure it is fair for both parties.
I understand that bonds are common in the software industry and can be a way for companies to protect their investment in employees.
I am committed to fulfilling my obligations under the bond agreement.
I am confident in my skills and abilities to contribute value to the co...
I appeared for an interview in Feb 2025, where I was asked the following questions.
I am open to committing to a two-year Business Operating Document, as it aligns with my professional growth and project stability.
Long-term commitment fosters deeper understanding of projects and team dynamics.
It allows for consistent contributions and the ability to see projects through to completion.
For example, working on a two-year project can lead to significant improvements in code quality and user experience.
It ...
Prime number , factorial
I appeared for an interview in Nov 2024, where I was asked the following questions.
Oops concept stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
Oops concept focuses on creating objects that contain data in the form of fields (attributes) and code in the form of procedures (methods).
It allows for the creation of reusable code and modular programs.
Encapsulation, inheritance, polymorphism, and abstraction are the four main principles of Oops concept.
E...
I applied via Naukri.com and was interviewed in Jul 2023. There were 2 interview rounds.
Create an HTML form with a popup modal for user input and validation.
Use HTML to create the form structure.
Utilize CSS for styling the form and popup modal.
Implement JavaScript to handle the popup display and form submission.
Example of a simple form: <form><input type='text' name='username'></form>
Example of a popup: <div class='modal'>...</div>
Use event listeners to trigger the popup on b...
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
It enables a single interface to be used for different data types.
Examples include method overloading and method overriding in object-oriented programming.
Loop through numbers and print the even ones.
Use a loop to iterate through numbers
Check if each number is even using a modulo operation
Print the even numbers
For loop is used for iterating over a collection of items or executing a block of code a specific number of times.
For loop syntax: for(initialization; condition; increment/decrement) { // code to be executed }
Can be used with arrays to iterate over each element: for(int i=0; i
Can be used to repeat a block of code a specific number of times: for(int i=0; i<5; i++) { // code to b...
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.
Allows a class to inherit properties and behaviors from another class
Promotes code reusability and reduces redundancy
Creates a parent-child relationship between classes
Derived class can access members of the base class
Example: Class B inherits from Class A, B can use methods and variables of A
A class is a blueprint for creating objects, while an object is an instance of a class.
A class defines the properties and behaviors of objects.
An object is a specific instance of a class.
Classes are used to create objects in object-oriented programming.
Objects can interact with each other by calling methods defined in their class.
Example: Class 'Car' defines properties like 'color' and 'model', while object 'myCar' is ...
I applied via Campus Placement and was interviewed in Jun 2023. There were 3 interview rounds.
Aptitude is very easy , their is mcq - aptitude, and coding mcq and no pre- placement talk
I applied via Campus Placement and was interviewed in Jun 2023. There were 3 interview rounds.
Aptitude is very easy , their is mcq - aptitude, and coding mcq and no pre- placement talk
I applied via Campus Placement and was interviewed in Jun 2023. There were 2 interview rounds.
Aptitude is very easy , their is mcq - aptitude, and coding mcq and no pre- placement talk
Top trending discussions
The duration of Aloha Technology interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 41 interview experiences
Difficulty level
Duration
based on 319 reviews
Rating in categories
Software Developer
396
salaries
| ₹2 L/yr - ₹9 L/yr |
Software Engineer
144
salaries
| ₹1.9 L/yr - ₹9.2 L/yr |
QA Engineer
131
salaries
| ₹2.2 L/yr - ₹9.5 L/yr |
Senior Software Developer
56
salaries
| ₹6.8 L/yr - ₹22.9 L/yr |
Quality Assurance Engineer
40
salaries
| ₹3.2 L/yr - ₹10.7 L/yr |
Tekwissen
Softenger
XcelServ Solutions
Capital Numbers Infotech