Add office photos
Employer?
Claim Account for FREE

Cybage

3.8
based on 1.9k Reviews
Video summary
Filter interviews by

100+ Sun Info Tech Interview Questions and Answers

Updated 27 Feb 2025
Popular Designations

Q1. Count Ways to Reach the N-th Stair Problem Statement

You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or two step...read more

Ans.

The task is to determine the number of distinct ways to climb from the 0th to the Nth stair, where you can climb one or two steps at a time.

  • Use dynamic programming to solve this problem efficiently.

  • Define a recursive function to calculate the number of ways to reach each stair.

  • Consider base cases for 0 and 1 stairs, and then use the recursive formula to calculate for N stairs.

  • Use modulo 10^9+7 to handle large numbers and avoid overflow.

  • Optimize the solution by storing interme...read more

Add your answer
Q2. How many types of memory areas are allocated by the JVM?
Ans.

JVM allocates 5 types of memory areas: Method Area, Heap, Stack, PC Register, and Native Method Stack.

  • Method Area stores class structures, method data, and runtime constants.

  • Heap is where objects are allocated and memory for new objects is dynamically allocated.

  • Stack stores local variables and partial results, and each thread has its own stack.

  • PC Register holds the address of the JVM instruction currently being executed.

  • Native Method Stack contains native method information.

Add your answer
Q3. Can we override or replace the embedded Tomcat server in Spring Boot?
Ans.

Yes, we can override or replace the embedded Tomcat server in Spring Boot.

  • Spring Boot allows for customization of embedded servers by excluding the default server dependency and adding a different server dependency.

  • For example, to replace Tomcat with Jetty, exclude Tomcat and add Jetty dependencies in the pom.xml file.

  • Configuration properties can also be used to customize the embedded server in Spring Boot applications.

Add your answer

Q4. Swap Two Numbers Problem Statement

Given two integers a and b, your task is to swap these numbers and output the swapped values.

Input:

The first line contains a single integer 't', representing the number of t...read more
Ans.

Swap two numbers 'a' and 'b' and output the swapped values.

  • Create a temporary variable to store one of the numbers

  • Assign the value of 'a' to 'b' and the temporary variable to 'a'

  • Output the swapped values as 'b' followed by 'a'

Add your answer
Discover Sun Info Tech interview dos and don'ts from real experiences
Q5. What is the purpose of using @ComponentScan in class files?
Ans.

@ComponentScan is used in class files to enable component scanning for Spring beans.

  • Enables Spring to automatically detect and register Spring components (beans) within the specified package(s)

  • Reduces the need for manual bean registration in configuration files

  • Can specify base packages to scan for components, or use default behavior to scan the current package and its sub-packages

Add your answer
Q6. What is the starter dependency of the Spring Boot module?
Ans.

The starter dependency of the Spring Boot module is spring-boot-starter.

  • The starter dependency provides a set of common dependencies for a specific type of application.

  • It helps in reducing the configuration overhead and simplifies the setup process.

  • For example, 'spring-boot-starter-web' includes dependencies for building web applications.

Add your answer
Are these interview questions helpful?
Q7. What are the concurrency strategies available in Hibernate?
Ans.

Hibernate provides optimistic and pessimistic concurrency control strategies.

  • Optimistic concurrency control: Uses versioning or timestamp to check for concurrent updates.

  • Pessimistic concurrency control: Locks the database records to prevent concurrent updates.

  • Examples: @Version annotation for optimistic concurrency, LockMode.UPGRADE for pessimistic concurrency.

Add your answer

Q8. What is Web API (applicaation programming interfeace) ?

Ans.

Web API is a set of protocols and tools for building software applications that communicate with each other through the internet.

  • Web API allows different software applications to communicate with each other over the internet.

  • It uses a set of protocols and tools to enable this communication.

  • Web API is commonly used in web development to allow web applications to interact with each other.

  • Examples of Web APIs include Google Maps API, Twitter API, and Facebook API.

Add your answer
Share interview questions and help millions of jobseekers 🌟
Q9. What are the various access specifiers in Java?
Ans.

Access specifiers in Java control the visibility of classes, methods, and variables.

  • There are four access specifiers in Java: public, private, protected, and default.

  • Public: accessible from any other class.

  • Private: accessible only within the same class.

  • Protected: accessible within the same package and subclasses.

  • Default: accessible only within the same package.

Add your answer

Q10. How to skip first 10 and last 10 rows in excel source and send to destination

Ans.

Skip first and last 10 rows in Excel source and send to destination

  • Use a library like Apache POI or OpenXML to read and write Excel files

  • Identify the range of rows to be skipped using row numbers or cell values

  • Copy the remaining rows to a new Excel file or sheet and save it as destination

Add your answer

Q11. What is the Hashmap in Java? Hashmap vs Lists

Ans.

Hashmap is a data structure in Java that stores key-value pairs. It provides fast retrieval and insertion of elements.

  • Hashmap uses hashing to store and retrieve elements based on keys

  • It allows null values and only one null key

  • Lists are ordered collections while Hashmap is not

  • Lists allow duplicate elements while Hashmap does not

Add your answer

Q12. Sort Array Problem Statement

Given an array consisting of 'N' positive integers where each integer is either 0, 1, or 2, your task is to sort the given array in non-decreasing order.

Input:

Each input starts wi...read more
Ans.

Sort an array of positive integers consisting of 0, 1, and 2 in non-decreasing order.

  • Use a counting sort approach to count the occurrences of 0s, 1s, and 2s in the array.

  • Update the array with the counts of 0s, 1s, and 2s in order to achieve the sorted array.

  • Ensure to handle the constraints of the input array elements being 0, 1, or 2.

  • Example: Input: [0, 2, 1, 2, 0], Output: [0, 0, 1, 2, 2]

Add your answer

Q13. What is Diamond structure problem and how can it be resolved

Ans.

Diamond structure problem occurs when a class inherits from two classes that have a common base class.

  • Diamond structure problem is a common issue in multiple inheritance where a class inherits from two classes that have a common base class.

  • This can lead to ambiguity in the inheritance hierarchy and can cause issues with method overriding and variable access.

  • One way to resolve the diamond structure problem is by using virtual inheritance, where the common base class is inherit...read more

Add your answer
Q14. What do you mean by data encapsulation?
Ans.

Data encapsulation is the concept of bundling data with the methods that operate on that data, restricting access to the data from outside the bundle.

  • Data encapsulation is a fundamental principle of object-oriented programming.

  • It allows for the data to be hidden and only accessed through the defined methods.

  • Encapsulation helps in achieving data security and prevents accidental modification of data.

  • Example: In a class representing a bank account, the account balance data shoul...read more

Add your answer

Q15. Which code segement starts jquery execution?

Ans.

The code segment that starts jquery execution is $(document).ready(function(){...});

  • $() is a shorthand for jQuery() function

  • document refers to the HTML document object

  • ready() method waits for the document to be fully loaded

  • function(){} is the code block that executes when the document is ready

Add your answer

Q16. Interface vs abstract class whats the difference

Ans.

Interface defines only method signatures while abstract class can have both method signatures and implementations.

  • An interface can be implemented by multiple classes while an abstract class can only be extended by one class.

  • An abstract class can have constructors while an interface cannot.

  • An abstract class can have non-abstract methods while an interface can only have abstract methods.

  • An abstract class can have instance variables while an interface cannot.

  • Example of interface...read more

View 1 answer

Q17. What is the need for SpringBoot?

Ans.

SpringBoot is a framework that simplifies the development of Java applications by providing a lightweight, opinionated approach.

  • SpringBoot eliminates the need for boilerplate code and configuration, allowing developers to focus on writing business logic.

  • It provides a wide range of built-in features and libraries, such as embedded servers, dependency management, and auto-configuration.

  • SpringBoot promotes modular and scalable application development through its support for micr...read more

Add your answer
Q18. Why is Java considered platform independent, while the Java Virtual Machine (JVM) is platform dependent?
Ans.

Java is platform independent because it compiles code into bytecode that can run on any system with a JVM, which is platform dependent.

  • Java code is compiled into bytecode, which is platform independent

  • The JVM interprets the bytecode and translates it into machine code specific to the underlying platform

  • This allows Java programs to run on any system with a JVM installed, making Java platform independent

Add your answer

Q19. explain how jdbc is used for connecting to database

Ans.

JDBC is a Java API that allows Java programs to connect to and interact with databases.

  • JDBC provides a standard interface for connecting to different types of databases.

  • To connect to a database using JDBC, you need to load the database driver, establish a connection, create a statement, execute SQL queries, and process the results.

  • Example: Class.forName("com.mysql.jdbc.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase", "username"...read more

Add your answer

Q20. Write program to count frequencyOfChars(String inputStr) ex. abbcddda a:2 b:2 c:1 d:3 Write program to isPowerOf3(int n) ex. 3->true 27->true 30->false Write SQL query of Emp (emp_id, name) Country Sal (emp_id,...

read more
Ans.

Programs to count frequency of characters in a string, check if a number is power of 3, and SQL query to get highest salary employees by country.

  • For frequencyOfChars, use a HashMap to store character counts and iterate through the string.

  • For isPowerOf3, keep dividing the number by 3 until it becomes 1 or not divisible by 3.

  • For SQL query, use a subquery to get max salary for each country and join with Emp table.

  • Example SQL query: SELECT e1.* FROM Emp e1 JOIN (SELECT Country, M...read more

Add your answer

Q21. How do you handle error in MVC?

Ans.

Errors in MVC can be handled using try-catch blocks, custom error pages, and logging.

  • Use try-catch blocks to catch exceptions and handle them appropriately

  • Create custom error pages to display user-friendly error messages

  • Implement logging to track errors and debug issues

  • Use ModelState.IsValid to validate user input and prevent errors

  • Use global error handling filters to handle errors across the application

Add your answer

Q22. What are security settings in IIS?

Ans.

Security settings in IIS are configurations that help protect web applications from unauthorized access and attacks.

  • IIS Manager allows for configuring security settings for websites and applications

  • Authentication settings can be configured to control access to resources

  • IP and domain restrictions can be set to allow or deny access to specific clients

  • SSL/TLS settings can be configured to encrypt traffic between clients and servers

  • Request filtering can be used to block requests ...read more

Add your answer
Q23. What command can be run to import a pre-exported Docker image into another Docker host?
Ans.

The command to import a pre-exported Docker image into another Docker host is 'docker load'

  • Use the 'docker load' command followed by the file path of the exported image tarball to import it into the Docker host

  • For example, 'docker load < my_image.tar.gz' will import the image from the file 'my_image.tar.gz'

  • Ensure that you have the necessary permissions to access the file and import images on the target Docker host

Add your answer
Q24. Can static methods be overridden?
Ans.

No, static methods cannot be overridden in Java.

  • Static methods belong to the class itself, not to any specific instance of the class.

  • Subclasses can have static methods with the same signature as the parent class, but they are not considered overridden.

  • Example: Parent class has a static method 'display()', and subclass also has a static method 'display()'. These are two separate methods, not an override.

Add your answer

Q25. What is application pool in IIS?

Ans.

Application pool is a container for applications hosted on IIS.

  • It provides a separate process and memory space for each application.

  • It helps in isolating applications from each other.

  • It allows for better resource management and application availability.

  • It can be configured with different settings like .NET framework version, identity, etc.

Add your answer
Q26. Can you explain the SOLID principles in Object-Oriented Design?
Ans.

SOLID principles are a set of five design principles in object-oriented programming to make software designs more understandable, flexible, and maintainable.

  • S - Single Responsibility Principle: A class should have only one reason to change.

  • O - Open/Closed Principle: Software entities should be open for extension but closed for modification.

  • L - Liskov Substitution Principle: Objects of a superclass should be replaceable with objects of its subclasses without affecting the prog...read more

Add your answer

Q27. What is server side validation?

Ans.

Server side validation is the process of validating user input on the server before processing it.

  • It ensures that the data received from the client is valid and secure.

  • It prevents malicious attacks and data breaches.

  • It reduces the load on the client-side and improves performance.

  • Examples include checking for required fields, data type, length, and format.

  • It is an essential part of web application security.

Add your answer
Q28. What is Hibernate caching?
Ans.

Hibernate caching is a mechanism used to improve the performance of applications by reducing the number of database queries.

  • Hibernate caching stores frequently accessed data in memory to reduce the need for repeated database queries.

  • There are different levels of caching in Hibernate, such as first-level cache and second-level cache.

  • First-level cache is associated with the Session object and is enabled by default.

  • Second-level cache is shared across multiple sessions and can be...read more

Add your answer
Q29. What are the most commonly used instructions in a Dockerfile?
Ans.

The most commonly used instructions in a Dockerfile include FROM, RUN, COPY, and CMD.

  • FROM: Specifies the base image for the container

  • RUN: Executes commands in the container

  • COPY: Copies files and directories from the host to the container

  • CMD: Specifies the default command to run when the container starts

Add your answer
Q30. Can you explain promises in JavaScript and describe its three states?
Ans.

Promises in JavaScript represent the eventual completion (or failure) of an asynchronous operation.

  • Promises are objects that represent the eventual completion (or failure) of an asynchronous operation.

  • They have three states: pending, fulfilled, or rejected.

  • A pending promise is one that hasn't been fulfilled or rejected yet.

  • A fulfilled promise is one that has been successful.

  • A rejected promise is one that has encountered an error.

  • Promises help in handling asynchronous operatio...read more

Add your answer

Q31. Why use Advanced Java?

Ans.

Advanced Java is used to develop complex and high-performance applications that require advanced features and functionalities.

  • Advanced Java provides advanced features like multithreading, networking, and database connectivity.

  • It allows for the development of robust and scalable enterprise applications.

  • Advanced Java frameworks like Spring and Hibernate simplify application development.

  • It enables the creation of secure and efficient web applications.

  • Advanced Java is widely used...read more

Add your answer
Q32. Can you differentiate between ArrayList and Vector in Java?
Ans.

ArrayList is non-synchronized and faster, while Vector is synchronized and slower.

  • ArrayList is not synchronized, while Vector is synchronized.

  • ArrayList is faster than Vector due to lack of synchronization.

  • Vector is thread-safe, while ArrayList is not.

  • Example: ArrayList<String> list = new ArrayList<>(); Vector<String> vector = new Vector<>();

Add your answer
Q33. What does the @SpringBootApplication annotation do internally?
Ans.

The @SpringBootApplication annotation is used to mark a class as a Spring Boot application.

  • It combines @Configuration, @EnableAutoConfiguration, and @ComponentScan annotations.

  • It enables the auto-configuration feature of Spring Boot.

  • It starts the Spring application context, which is the core of the Spring Framework.

  • It scans the current package and its sub-packages for components to register.

  • It serves as the entry point of the Spring Boot application.

Add your answer
Q34. What are the basic annotations that Spring Boot offers?
Ans.

Spring Boot offers basic annotations for various functionalities like mapping requests, handling exceptions, defining beans, etc.

  • 1. @RestController - Used to define RESTful web services.

  • 2. @RequestMapping - Maps HTTP requests to handler methods.

  • 3. @Autowired - Injects dependencies into a Spring bean.

  • 4. @Component - Indicates a class is a Spring component.

  • 5. @Service - Indicates a class is a service component.

  • 6. @Repository - Indicates a class is a repository component.

  • 7. @Con...read more

Add your answer
Q35. Can you describe the lifecycle of a Docker container?
Ans.

The lifecycle of a Docker container involves creation, running, pausing, restarting, and stopping.

  • 1. Creation: A Docker container is created from a Docker image using the 'docker run' command.

  • 2. Running: The container is started and runs the specified application or service.

  • 3. Pausing: The container can be paused using the 'docker pause' command, which temporarily halts its processes.

  • 4. Restarting: The container can be restarted using the 'docker restart' command, which stops...read more

Add your answer

Q36. What is difference between abstract class and interface.

Ans.

Abstract class can have implementation while interface only has method signatures.

  • Abstract class can have constructors while interface cannot.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Abstract class can have non-public members while interface only has public members.

  • Abstract class is used for creating a base class while interface is used for implementing a contract.

  • Example of abstract class: Animal (with abstract method 'makeSound'...read more

Add your answer

Q37. Different keys sql , use of surrogate key

Ans.

SQL keys and use of surrogate key

  • SQL keys are used to uniquely identify records in a table

  • Primary key is a unique identifier for a record

  • Foreign key is a reference to a primary key in another table

  • Surrogate key is a system-generated unique identifier for a record

  • Surrogate keys are useful when there is no natural primary key

Add your answer

Q38. Which Angular version have you used

Ans.

I have used Angular version 8 and 9 in my previous projects.

  • Used Angular 8 for a project that required advanced routing and lazy loading features

  • Upgraded to Angular 9 to take advantage of improved performance and Ivy rendering engine

Add your answer

Q39. What make you interested in coding?

Ans.

I am fascinated by the problem-solving aspect of coding and the ability to create something from scratch.

  • Enjoy the challenge of solving complex problems

  • Love the creativity involved in building something new

  • Appreciate the logical thinking required in coding

  • Passionate about technology and innovation

Add your answer

Q40. 2. Tell what you know about Cyabge.

Ans.

Cybage is a global technology consulting organization specializing in outsourced product engineering services.

  • Founded in 1995 and headquartered in Pune, India

  • Provides software development, testing, and maintenance services

  • Has a presence in North America, Europe, and Asia-Pacific regions

  • Serves industries such as healthcare, retail, banking, and finance

  • Has partnerships with companies like Microsoft, IBM, and Amazon Web Services

Add your answer

Q41. What are action filters?

Ans.

Action filters are attributes that can be applied to controller actions to modify the way they behave.

  • Action filters are used to perform tasks before or after an action method executes.

  • They can be used to modify the result of an action method.

  • Examples include authentication filters, caching filters, and exception filters.

Add your answer

Q42. What is media type formatters?

Ans.

Media type formatters are used to serialize and deserialize data in Web API.

  • Media type formatters are responsible for converting data between CLR objects and their serialized representation.

  • They are used in Web API to format the response data based on the client's request.

  • Examples of media type formatters include JSON, XML, and BSON.

  • Developers can create custom media type formatters to support other data formats.

Add your answer
Q43. What are the advantages of using Packages in Java?
Ans.

Packages in Java help organize code, prevent naming conflicts, and provide access control.

  • Organizes code into logical groups for easier maintenance and readability

  • Prevents naming conflicts by allowing classes with the same name to coexist in different packages

  • Provides access control by using access modifiers like public, private, protected, and default

  • Facilitates reusability by allowing classes in one package to be accessed by classes in another package using import statement

Add your answer

Q44. What is react? What is css? What is redux?

Ans.

React is a JavaScript library for building user interfaces. CSS is a styling language used to design web pages. Redux is a predictable state container for JavaScript apps.

  • React is used for building reusable UI components

  • CSS is used to style and layout web pages

  • Redux is used for managing the state of an application

  • React and Redux are often used together to build complex web applications

Add your answer

Q45. What is attribute handling?

Ans.

Attribute handling refers to the management and manipulation of attributes in software development.

  • Attributes are characteristics or properties of an object or entity.

  • Attribute handling involves defining, accessing, modifying, and deleting attributes.

  • Attributes can be used to store data, control behavior, or provide metadata.

  • Examples of attribute handling include setting the color of a button, retrieving the size of a file, or changing the font of a text.

  • Attribute handling is...read more

Add your answer

Q46. What is serialization?

Ans.

Serialization is the process of converting an object into a format that can be stored or transmitted.

  • Serialization is used to save the state of an object and recreate it later.

  • It is commonly used in network communication to transmit data between different systems.

  • Examples of serialization formats include JSON, XML, and binary formats like Protocol Buffers.

  • Serialization can also be used for caching and data persistence.

Add your answer

Q47. What is selector method?

Ans.

Selector method is used to select and manipulate elements in a web page using CSS selectors.

  • Selector method is a part of CSS (Cascading Style Sheets).

  • It is used to select and manipulate HTML elements based on their attributes, classes, and IDs.

  • Examples of selector methods include getElementById(), getElementsByClassName(), and querySelectorAll().

Add your answer
Q48. Why are Java Strings immutable in nature?
Ans.

Java Strings are immutable to ensure thread safety, security, and optimization.

  • Immutable strings prevent accidental changes, ensuring data integrity.

  • String pool optimization reduces memory usage by reusing common strings.

  • Thread safety is guaranteed as strings cannot be modified concurrently.

  • Security is enhanced as sensitive information cannot be altered once set.

Add your answer

Q49. Ssis checkpoint and breakpoint use

Ans.

SSIS checkpoint and breakpoint are used for debugging and error handling in SSIS packages.

  • Checkpoint saves the package progress and restarts from the last successful checkpoint in case of failure.

  • Breakpoint pauses the package execution at a specific point to allow debugging and troubleshooting.

  • Both can be set at the package level or individual task level.

  • Checkpoint uses a checkpoint file to store the progress information.

  • Breakpoint can be set by right-clicking on a task and s...read more

Add your answer

Q50. What do you know about Cybage?

Ans.

Cybage is a global technology consulting organization specializing in outsourced product engineering services.

  • Cybage is a global technology consulting organization

  • Specializes in outsourced product engineering services

  • Offers services in software development, testing, and maintenance

  • Has expertise in various domains including healthcare, finance, and retail

  • Has a strong focus on quality and customer satisfaction

Add your answer

Q51. What is CORS in microservices

Ans.

CORS (Cross-Origin Resource Sharing) is a security feature that allows or restricts access to resources from different domains.

  • CORS is used to prevent unauthorized access to resources from different domains

  • It is implemented by adding specific headers to HTTP responses

  • CORS can be configured to allow or restrict access based on the origin domain

  • Examples of CORS headers include Access-Control-Allow-Origin and Access-Control-Allow-Methods

Add your answer

Q52. Explain what is LINQ?

Ans.

LINQ (Language Integrated Query) is a feature in C# that allows for querying data from different data sources using a uniform syntax.

  • LINQ allows for querying data from collections, databases, XML, and more.

  • It provides a set of standard query operators like Where, Select, OrderBy, etc.

  • LINQ queries are written in a declarative syntax similar to SQL.

  • Example: var result = from num in numbers where num % 2 == 0 select num;

Add your answer

Q53. Different types of joins in SQL

Ans.

Different types of joins in SQL include inner join, left join, right join, and full outer join.

  • Inner join: Returns rows when there is a match in both tables

  • Left join: Returns all rows from the left table and the matched rows from the right table

  • Right join: Returns all rows from the right table and the matched rows from the left table

  • Full outer join: Returns rows when there is a match in either table

Add your answer
Q54. What are the differences between stateless and stateful components in ReactJS?
Ans.

Stateless components do not have internal state, while stateful components have internal state that can change.

  • Stateless components are functional components that do not have internal state

  • Stateful components are class components that have internal state that can change

  • Stateless components are simpler and easier to test, while stateful components are more powerful and flexible

  • Example: Stateless component - const Button = () => <button>Click me</button>; Stateful component - c...read more

Add your answer

Q55. What is REST? Explain Post

Ans.

REST stands for Representational State Transfer, a software architectural style for designing networked applications.

  • REST is based on the idea of treating server objects as resources that can be created, updated, and deleted using standard HTTP methods.

  • It uses a stateless communication protocol, meaning each request from a client to a server must contain all the information necessary to understand the request.

  • RESTful APIs typically use endpoints to represent resources, with e...read more

Add your answer

Q56. What are OOPS Concepts ?

Ans.

OOPS Concepts are fundamental principles of Object-Oriented Programming, including Inheritance, Encapsulation, Polymorphism, and Abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features.

Add your answer

Q57. Different between spring and springboot.

Ans.

Spring is a framework for building Java applications, while Spring Boot is a tool for quickly creating Spring-based applications.

  • Spring provides a comprehensive framework for building Java applications, while Spring Boot is a tool that simplifies the process of creating Spring-based applications.

  • Spring requires more configuration and setup, while Spring Boot provides a more streamlined approach.

  • Spring Boot includes an embedded server, making it easier to deploy and run applic...read more

Add your answer
Q58. What are the differences between a class component and a functional component in ReactJS?
Ans.

Class components are ES6 classes that extend from React.Component and have state, while functional components are simple functions that take props as arguments.

  • Class components are ES6 classes that extend from React.Component

  • Functional components are simple functions that take props as arguments

  • Class components have state and lifecycle methods, while functional components do not

  • Functional components are easier to read, write, and test compared to class components

  • With the intr...read more

Add your answer

Q59. What is Delegate and what are the types?

Ans.

Delegate is a type that represents references to methods with a specific parameter list and return type.

  • Delegates are similar to function pointers in C++.

  • They are used to achieve loose coupling and separation of concerns.

  • There are two types of delegates: singlecast and multicast.

  • Singlecast delegates can hold references to a single method.

  • Multicast delegates can hold references to multiple methods.

  • Delegates are commonly used in event handling and callback scenarios.

Add your answer

Q60. Talk for 5 mins on any given topic.

Ans.

Discussing the impact of artificial intelligence on society

  • Introduction to artificial intelligence and its applications

  • Positive impacts of AI on society such as improved healthcare and efficiency

  • Negative impacts of AI like job displacement and privacy concerns

  • Ethical considerations in AI development and usage

  • Future implications of AI on society

Add your answer
Q61. What do you know about the JIT compiler?
Ans.

JIT compiler stands for Just-In-Time compiler, which compiles code during runtime instead of ahead of time.

  • JIT compiler improves performance by compiling code on-the-fly as it is needed

  • It can optimize code based on runtime conditions and platform specifics

  • Examples include Java's HotSpot JIT compiler and .NET's RyuJIT compiler

Add your answer
Q62. What is the garbage collector in Java?
Ans.

Garbage collector in Java is a built-in mechanism that automatically manages memory by reclaiming unused objects.

  • Garbage collector runs in the background to identify and remove objects that are no longer needed.

  • It helps prevent memory leaks and optimize memory usage.

  • Examples of garbage collectors in Java include Serial, Parallel, CMS, and G1.

Add your answer

Q63. What is dataflow of react

Ans.

React dataflow is unidirectional, from parent to child components via props and from child to parent via callbacks.

  • React follows a unidirectional data flow architecture.

  • Parent components pass data down to child components via props.

  • Child components can update the parent's state via callbacks.

  • This helps to maintain a clear and predictable flow of data throughout the application.

  • Redux can be used to manage more complex data flows.

Add your answer

Q64. explain oops concept also mvc architech

Ans.

OOPs concept focuses on objects and classes, while MVC architecture separates the application into Model, View, and Controller components.

  • OOPs concept involves encapsulation, inheritance, polymorphism, and abstraction.

  • MVC architecture separates the application logic into Model (data), View (presentation), and Controller (interaction) components.

  • Example of OOPs concept: Creating a class 'Car' with properties like 'color' and methods like 'drive'.

  • Example of MVC architecture: A ...read more

Add your answer

Q65. What is custom middleware in .net core

Ans.

Custom middleware in .NET Core is a piece of code that sits between the request and response pipeline to perform custom operations.

  • Custom middleware can be used to add custom headers, logging, authentication, and authorization to the request pipeline.

  • Middleware can be added to the pipeline using the Use() method in the Startup.cs file.

  • Middleware can be created using classes that implement the IMiddleware interface or by using lambda expressions.

  • Middleware can be ordered in th...read more

Add your answer

Q66. Difference Between temp table and table variable

Ans.

Temp table is stored in tempdb and table variable is stored in memory.

  • Temp table is created using CREATE TABLE statement and can be accessed by multiple sessions.

  • Table variable is created using DECLARE statement and can only be accessed within the scope of the batch or procedure.

  • Temp table can have indexes and statistics while table variable cannot.

  • Temp table is useful for large data sets while table variable is useful for small data sets.

  • Temp table can be used in transaction...read more

Add your answer
Q67. How can we structure the top-level directories in Redux?
Ans.

Top-level directories in Redux should be structured based on functionality and feature modules.

  • Organize directories based on feature modules, such as 'auth', 'todos', 'users'.

  • Separate concerns by having directories for actions, reducers, components, and containers.

  • Utilize a 'shared' directory for common functionality used across multiple feature modules.

  • Consider using a 'utils' directory for utility functions and helpers.

  • Keep the structure flat and avoid nesting directories t...read more

Add your answer

Q68. Types of join in sql

Ans.

Types of join in SQL

  • Inner join: returns only the matching rows from both tables

  • Left join: returns all rows from the left table and matching rows from the right table

  • Right join: returns all rows from the right table and matching rows from the left table

  • Full outer join: returns all rows from both tables

  • Cross join: returns the Cartesian product of both tables

Add your answer

Q69. what is interface

Ans.

An interface is a contract that defines a set of methods that a class must implement.

  • An interface provides a way to achieve multiple inheritance in Java.

  • Interfaces are used to achieve abstraction and loose coupling.

  • Classes can implement multiple interfaces.

  • Interfaces can have default methods and static methods.

  • Example: The Comparable interface in Java is used to compare objects.

Add your answer

Q70. How to recover data from hdd if hdd is affected from virus ?

Ans.

To recover data from a virus-infected HDD, isolate the HDD, scan it with antivirus software, and use data recovery tools if necessary.

  • Disconnect the infected HDD from the computer to prevent further spread of the virus

  • Connect the HDD to a clean and secure computer as a secondary drive

  • Run a thorough antivirus scan on the infected HDD to remove the virus

  • If the antivirus scan doesn't recover the data, use data recovery software like Recuva, TestDisk, or EaseUS Data Recovery Wiza...read more

View 1 answer

Q71. Introduce yourself How to handle username and password popup in selenium? Explain the framework used in your project? How to handle the frames? How to switch to another tab? Relative and absolute xpath TestNG q...

read more
Ans.

Answering questions related to QA Automation Engineer interview

  • To handle username and password popup, use sendKeys() method to enter the credentials

  • To handle frames, use switchTo().frame() method

  • To switch to another tab, use switchTo().window() method

  • Relative xpath starts with '//' and searches for elements based on their relationship with other elements

  • Absolute xpath starts with '/' and searches for elements based on their exact location in the HTML tree

  • TestNG is a testing f...read more

Add your answer

Q72. Explain oops concepts

Ans.

OOPs concepts are fundamental principles in object-oriented programming that help in organizing and designing code.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (class).

  • Inheritance: Allowing a class to inherit properties and behavior from another class.

  • Polymorphism: The ability of objects to take on multiple forms or have multiple behaviors.

  • Abstraction: Hiding complex implementation details and showing only the necessary features of an o...read more

Add your answer

Q73. Reverse an array code

Ans.

Reverse an array of strings in place

  • Iterate through half of the array and swap elements at opposite ends

  • Use a temporary variable to store the value being swapped

Add your answer

Q74. What is polymorphism

Ans.

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.

Add your answer

Q75. explain the oops concepts

Ans.

Object-oriented programming concepts like inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features.

Add your answer

Q76. Wrapper classes in java

Ans.

Wrapper classes are used to convert primitive data types into objects.

  • Wrapper classes provide methods to convert primitive data types into objects and vice versa

  • Wrapper classes are immutable

  • Wrapper classes are used in collections and generics

  • Examples of wrapper classes include Integer, Double, Boolean, etc.

Add your answer

Q77. Abstract vs interface

Ans.

Abstract classes are partially implemented classes while interfaces are fully abstract classes.

  • Abstract classes can have both implemented and abstract methods while interfaces can only have abstract methods.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Abstract classes can have constructors while interfaces cannot.

  • Interfaces are used for achieving multiple inheritance in Java.

  • Abstract classes are used for creating a base class for othe...read more

Add your answer

Q78. Explain collection framework.

Ans.

Collection framework in Java provides a set of interfaces and classes to store and manipulate groups of objects.

  • Provides interfaces like List, Set, and Map for different types of collections

  • Classes like ArrayList, HashSet, and HashMap implement these interfaces

  • Allows easy manipulation and iteration over collections

  • Provides algorithms like sorting and searching for collections

  • Introduced in Java 1.2

Add your answer
Q79. What is dependency injection?
Ans.

Dependency injection is a design pattern where components are provided with their dependencies rather than creating them internally.

  • Allows for easier testing by providing mock dependencies

  • Promotes loose coupling between components

  • Improves code reusability and maintainability

  • Examples: Constructor injection, Setter injection, Interface injection

Add your answer

Q80. 4) What are the ways we through can submit the data in powerapps

Ans.

Data can be submitted in PowerApps through various ways.

  • Using SubmitForm function

  • Using Patch function

  • Using Update function

  • Using Collect function

  • Using a custom connector

  • Using a data gateway

  • Using a flow

  • Using a REST API

Add your answer
Q81. What is the diffing algorithm in ReactJS?
Ans.

React uses a diffing algorithm called Virtual DOM to efficiently update the actual DOM.

  • React creates a virtual representation of the DOM called Virtual DOM.

  • When state or props change, React compares the Virtual DOM with the actual DOM to find the differences.

  • React then updates only the parts of the actual DOM that have changed, minimizing re-renders and improving performance.

Add your answer

Q82. What is need of spring boot What is actuator, query param, http methods

Ans.

Spring Boot is a framework that simplifies the development of Java applications by providing a set of tools and conventions.

  • Spring Boot eliminates the need for complex configuration by providing defaults for most settings.

  • Actuator is a set of tools provided by Spring Boot for monitoring and managing the application.

  • Query param is used to pass parameters in the URL of an HTTP request.

  • HTTP methods like GET, POST, PUT, DELETE are used to perform different operations on resources...read more

Add your answer

Q83. Containers in SSIS

Ans.

Containers in SSIS are used to group related tasks and provide a logical flow for the package.

  • Containers can be used to group tasks into a single unit of work

  • There are several types of containers in SSIS, including Sequence, For Loop, and Foreach Loop

  • Containers can be nested to create complex workflows

  • Containers can have precedence constraints to control the order in which tasks are executed

Add your answer
Q84. What is a higher order function?
Ans.

A higher order function is a function that takes one or more functions as arguments or returns a function as its result.

  • Higher order functions can be used to create abstractions and compose functions together.

  • Examples include map, filter, and reduce functions in JavaScript.

  • Higher order functions can also be used for event handling and asynchronous programming.

Add your answer

Q85. What are the differences between var, let, and const in JavaScript?

Ans.

var, let, and const are used to declare variables in JavaScript with different scopes and mutability.

  • var is function-scoped and can be redeclared and updated

  • let is block-scoped and can be updated but not redeclared

  • const is block-scoped and cannot be updated or redeclared

Add your answer

Q86. What is your thought on cybage?

Ans.

Cybage is a global technology consulting organization specializing in outsourced product engineering services.

  • Cybage has a strong focus on software engineering and product development.

  • They have a global presence with offices in North America, Europe, and Asia.

  • Cybage has expertise in various industries including healthcare, retail, and finance.

  • They have won several awards for their work in software engineering and innovation.

Add your answer

Q87. Why do you think React is better than Angular

Ans.

React is better than Angular due to its flexibility, performance, and community support.

  • React allows for more flexibility in terms of architecture and state management compared to Angular.

  • React's virtual DOM leads to better performance by only updating the necessary components, while Angular's two-way data binding can cause performance issues.

  • React has a larger and more active community, providing better support and a wider range of resources compared to Angular.

Add your answer

Q88. Pipes in Angular

Ans.

Pipes in Angular are used for transforming data in templates.

  • Pipes are used to format data before displaying it in the view.

  • Angular provides built-in pipes like date, currency, uppercase, lowercase, etc.

  • Custom pipes can also be created for specific formatting needs.

  • Pipes can be chained together for multiple transformations.

  • Example: {{ birthday | date:'MM/dd/yyyy' }} will format the birthday date.

Add your answer

Q89. Strings in Java

Ans.

Strings in Java are sequences of characters used to store and manipulate text data.

  • Strings in Java are immutable, meaning their values cannot be changed once they are created.

  • String objects can be created using the 'new' keyword or by directly assigning a string literal.

  • Common string operations in Java include concatenation, substring extraction, and comparison.

Add your answer
Q90. Can you explain hoisting in JavaScript?
Ans.

Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.

  • Variable declarations are hoisted to the top of their scope but not their assignments.

  • Function declarations are fully hoisted, meaning they can be called before they are declared.

  • Hoisting can lead to unexpected behavior if not understood properly.

Add your answer

Q91. 2) What is content query web part in sharepoint online

Ans.

Content Query Web Part is a Sharepoint Online tool that displays content from multiple sites in a single location.

  • Displays content from multiple sites in a single location

  • Can be customized to show specific content based on filters

  • Can be used to create dynamic navigation menus

  • Can be used to display news or announcements from across the organization

Add your answer
Q92. What is the Combine Reducer in Redux?
Ans.

Combine Reducer is a function in Redux that combines multiple reducers into a single reducer function.

  • Combines multiple reducers into a single reducer function

  • Helps manage different pieces of state in Redux store

  • Improves code organization and maintainability

  • Example: combineReducers({ reducer1, reducer2 })

  • Example: const rootReducer = combineReducers({ reducer1, reducer2 })

Add your answer

Q93. 5) What is delegation &amp; gallary controls in sharepoint

Ans.

Delegation allows users to assign tasks to others. Gallery controls are used to display images and videos.

  • Delegation is a feature that allows users to assign tasks to others, giving them the ability to complete the task on behalf of the original user.

  • Gallery controls are used to display images and videos in a visually appealing way, allowing users to easily browse and view content.

  • Examples of gallery controls include the Picture Library Slideshow Web Part and the Media Web Pa...read more

Add your answer

Q94. How can you remove duplicate numbers from an array?

Ans.

Use a Set to remove duplicate numbers from an array of strings.

  • Create a Set from the array to automatically remove duplicates

  • Convert the Set back to an array if needed

Add your answer
Q95. What are callbacks in JavaScript?
Ans.

Callbacks in JavaScript are functions passed as arguments to other functions to be executed later.

  • Callbacks are commonly used in event handling, asynchronous programming, and functional programming.

  • They allow for functions to be executed after another function has finished executing.

  • Example: setTimeout function takes a callback function as an argument to be executed after a specified time.

Add your answer
Q96. How is Relay different from Redux?
Ans.

Relay is a GraphQL client specifically designed for React, while Redux is a state management library for any JavaScript app.

  • Relay is tightly integrated with GraphQL, providing a declarative way to fetch and manage data for React components.

  • Redux is a standalone state management library that can be used with any JavaScript framework, not just React.

  • Relay encourages colocating data requirements with React components, while Redux separates data fetching and state management.

  • Rela...read more

Add your answer

Q97. 1.oops concept 2.what is deffered defect 3.priority and severity of defect 4.tc or test scenarios for order placement 5.sdlc ,stlc 6.geeatest of all no program 6

Ans.

The interview questions cover topics like oops concepts, deferred defects, defect priority and severity, test scenarios for order placement, SDLC and STLC.

  • Oops concepts refer to Object-Oriented Programming principles like Inheritance, Polymorphism, Encapsulation, and Abstraction.

  • Deferred defect is a bug that is not fixed immediately but is scheduled to be fixed in a future release.

  • Priority of a defect determines the order in which it should be fixed, while severity indicates ...read more

Add your answer

Q98. Queries using joins in SQL

Ans.

Joins in SQL are used to combine data from two or more tables based on a related column.

  • Joins are used to retrieve data from multiple tables in a single query.

  • Common types of joins include inner join, left join, right join, and full outer join.

  • Join conditions are specified using the ON keyword and can include multiple conditions.

  • Aliases can be used to simplify the syntax of join queries.

  • Joins can be nested to combine data from more than two tables.

Add your answer

Q99. 2.What is OOP explain.

Ans.

OOP stands for Object-Oriented Programming. It is a programming paradigm that uses objects to represent and manipulate data.

  • OOP focuses on creating reusable code by organizing data and behavior into objects.

  • Objects have properties (attributes) and methods (functions) that can be accessed and manipulated.

  • Inheritance allows objects to inherit properties and methods from parent objects.

  • Polymorphism allows objects to take on multiple forms and behave differently depending on the ...read more

Add your answer
Q100. What are closures in JavaScript?
Ans.

Closures in JavaScript allow functions to retain access to variables from their parent scope even after the parent function has finished executing.

  • Closures are created whenever a function is defined within another function.

  • They allow the inner function to access variables from the outer function, even after the outer function has finished executing.

  • Closures are commonly used to create private variables and functions in JavaScript.

  • Example: function outerFunction() { let outerV...read more

Add your answer
1
2
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Sun Info Tech

based on 144 interviews
Interview experience
4.0
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.4
 • 278 Interview Questions
3.9
 • 212 Interview Questions
3.9
 • 185 Interview Questions
3.7
 • 180 Interview Questions
3.9
 • 168 Interview Questions
3.4
 • 134 Interview Questions
View all
Top Cybage Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter