Newgen Software Technologies
100+ Maharani Wedding Collection Interview Questions and Answers
Write a program to do basic string compression. For a character which is consecutively repeated more than once, replace consecutive duplicate occurrences with the count of repetitions.
Exampl...read more
Ninja visited his village after a long time. His village is having a river in its center with ‘N’ houses on the northern bank with distinct X-coordinates ‘A[1]’ , A[2]’ , … , ‘A[N]’ and ‘N’ hous...read more
You are given an integer ‘N’, your task is to find and return the N’th Fibonacci number using matrix exponentiation.
Since the answer can be very large, return the answer modulo 10^9 +7.
Fi...read more
The task is to find the Nth Fibonacci number using matrix exponentiation.
Use matrix exponentiation to efficiently calculate the Nth Fibonacci number
Return the answer modulo 10^9 + 7 to handle large numbers
Implement the function to solve the problem
The Fibonacci sequence starts with 1, 1, so F(1) = F(2) = 1
The time complexity can be improved to better than O(N) using matrix exponentiation
Given two arrays ‘ARR’ and ‘BRR’ of size ‘N’ and ‘M’ respectively. Your task is to sort the elements of ‘ARR’ in such a way that the relative order among the elements will be the same as those a...read more
The task is to sort the elements of ARR in such a way that the relative order among the elements will be the same as those are in BRR. For the elements not present in BRR, append them in the last in sorted order.
Create a frequency map of elements in ARR
Iterate through BRR and for each element, append it to the result array the number of times it appears in ARR
Iterate through the frequency map and for each element not present in BRR, append it to the result array
Sort the resul...read more
You are given a sorted integer array' ARR' of size 'N'. You need to remove the duplicates from the array such that each element appears only once. Return the length of this ne...read more
The task is to remove duplicates from a sorted integer array in-place and return the length of the modified array.
Use two pointers, one for iterating through the array and another for keeping track of the unique elements.
Compare the current element with the next element. If they are the same, move the second pointer forward.
If they are different, update the first pointer and replace the element at the first pointer with the unique element.
Continue this process until the end o...read more
You must know all the basic concepts of Oops,data structures and algorithms to solve them correctly
You have a set of 10 weights, each weight weighing 10g. There are 10 such sets. But set contains 10 weights of 9g. Determine the set of 9g weights by using a weighing scale once.
Soln: take 1 weight from s...read more
You are given an array (ARR) of length N, consisting of integers. You have to find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.
A subarray is a ...read more
Write Algorithm for Bubble Sort. Explain how it works to a Layman. What sorts are better than the Bubble Sort.
Client-Server Architecture is a computing model in which the server hosts, delivers, and manages most of the resources and services to be consumed by the client. This type of...read more
Ninja is given an integer ‘N’. Ninja wants to find whether the binary representation of integer ‘N’ is palindrome or not.
A palindrome is a sequence of characters that reads the same backward as...read more
Q12. 1. Two random coding problems. 2. Difference between DBMS and RDBMS. 3. What is call by reference and call by variable. 4. State exceptions in Java. 5. What is json?
Interview questions for Applications Engineer including coding problems, DBMS vs RDBMS, call by reference vs call by variable, Java exceptions, and JSON.
Coding problems test problem-solving skills and coding ability.
DBMS is a general term for managing databases, while RDBMS is a specific type that uses a relational model.
Call by reference passes a reference to a variable, while call by variable passes a copy of the variable.
Java exceptions are errors that occur during program...read more
You are given an N * N matrix of integers where each row and each column is sorted in increasing order. You are given a target integer 'X'. Find the position of...read more
You have been given two singly Linked Lists, where each of them represents a positive number without any leading zeros.
Your task is to add these two numbers and print the summatio...read more
We are suffering from the Second wave of Covid-19. The Government is trying to increase its vaccination drives. Ninja wants to help the Government to plan an effective method to help increase v...read more
Reverse the given string word-wise. The last word in the given string should come at 1st place, the last-second word at 2nd place, and so on. Individual words should remain as it is.
Inp...read more
Functions running in parallel with other functions are called asynchronous
A good example is JavaScript setTimeout().
Give an example of an Asynchronous function.
setTimeout(myFunc...read more
A JOIN clause is used to combine rows from two or more tables, based on a related column between them.
1.) INNER JOIN: Returns records that have matching values in both tables
2.) LEFT (OU...read more
1. What is primary, candidate and foreign key.
2. Write a query to join three tables.
Primary key uniquely identifies a record in a table. Candidate key is a unique key that can be chosen as the primary key. Foreign key establishes a link between two tables.
Primary key ensures uniqueness and is used to identify records in a table.
Candidate key is a unique key that can be chosen as the primary key.
Foreign key establishes a relationship between two tables based on the values of the primary key in one table and the corresponding values in another table.
Given a string, determine if it is a palindrome, considering only alphanumeric characters.
Palindrome
A palindrome is a word, number, phrase, or other sequences of characters which read the sam...read more
Q21. How to compile all Java files inside a folder using Cmd
To compile all Java files inside a folder using Cmd, navigate to the folder and run 'javac *.java'
Open Command Prompt and navigate to the folder containing the Java files
Run the command 'javac *.java' to compile all Java files in the folder
Check for any errors or warnings in the output
For a given string(str) and a character X, write a function to remove all the occurrences of X from the given string and return it.
The input string will remain unchanged if the given character(...read more
Difference between equal and equals.
Difference between overloading and overriding.
What is inheritance.
What types of inheritance are supported by java.
equal is a keyword used for assignment, equals is a method used for comparing objects.
equal is used for assigning a value to a variable
equals is used for comparing objects for equality
Example: int x = 5; String s1 = "hello"; String s2 = new String("hello"); s1.equals(s2) returns true
Q25. Write a query to find out the 2nd highest salary from the table ?
Query to find 2nd highest salary from a table
Use ORDER BY and LIMIT
Exclude the highest salary using subquery
Handle cases where there are ties
Q26. Make a C++ class and show its implementation
Create a C++ class with implementation
Create a class named 'Person' with private data members like name, age, and gender
Include public member functions to set and get the data members
Implement the class in a separate header and source file
Psychometric tests are used to measure an individual's' mental capabilities and behaviour. It was designed to check student overall suitability for a particular role based on performance in the...read more
Psychometric tests are used to measure mental capabilities and behavior for assessing suitability for a role.
Psychometric tests measure mental capabilities and behavior
They assess suitability for a particular role
They check personality characteristics and aptitude/cognitive ability
Write some commands of the following types:
DDL
DML
DCL
TCL
Q30. 1. What is triggers 2. Difference between method overloading and method overriding 3. Ask me to code five numbers in ascending order 4.ask me to code prime or not 5. Difference between final and finally keyword...
read moreInterview questions for Software Developer on triggers, method overloading/overriding, sorting, prime numbers, final/finally keyword, and normalization.
Triggers are database objects that are automatically executed in response to certain events.
Method overloading is having multiple methods with the same name but different parameters, while method overriding is having a subclass method with the same name and parameters as a superclass method.
Sorting five numbers in ascending or...read more
Q31. what are the different datatypes in python?
Python has various datatypes including int, float, str, list, tuple, dict, set, bool.
int: whole numbers (e.g. 5)
float: decimal numbers (e.g. 3.14)
str: text (e.g. 'hello')
list: ordered collection (e.g. [1, 2, 3])
tuple: ordered, immutable collection (e.g. (1, 2, 3))
dict: key-value pairs (e.g. {'key': 'value'})
set: unordered collection of unique elements (e.g. {1, 2, 3})
bool: True or False values
Q32. Database design using SQL and queries related to it
Database design is crucial for efficient data management. SQL queries help retrieve and manipulate data.
Understand the data requirements and relationships before designing the database schema
Normalize the data to reduce redundancy and improve data integrity
Use primary and foreign keys to establish relationships between tables
Write efficient SQL queries to retrieve and manipulate data
Optimize the database performance by indexing frequently queried columns
This section consists of 25 questions from the topics like algebra, probability, permutation & combination, time & work, time, speed & distance, arithmetic, percentages, profit & loss, HCF, LC...read more
Q34. Which technology you know and worked
I have experience with various technologies including Java, Python, HTML/CSS, JavaScript, and SQL.
Java
Python
HTML/CSS
JavaScript
SQL
Q35. Internal working of Hashmap and Concurrent Hashmap
Hashmap is a data structure that stores key-value pairs. Concurrent Hashmap is a thread-safe version of Hashmap.
Hashmap uses hashing to store and retrieve elements based on their keys.
Concurrent Hashmap allows multiple threads to access and modify the map concurrently.
Hashmap has a load factor that determines when the map needs to be resized.
Concurrent Hashmap uses a technique called lock striping to allow concurrent access to different parts of the map.
Hashmap is not thread-...read more
Q37. Dofferemt ways to prevent rerendering of a child component in react?
Prevent rerendering of a child component in React
Use shouldComponentUpdate() lifecycle method
Use React.memo() to memoize functional components
Use PureComponent instead of Component
Pass props as a callback function to avoid unnecessary re-renders
Use React.PureComponent for class components
Use React.memo() for functional components
Q38. Concat two linked lists in alternative way
Concatenate two linked lists alternatively
Create a new linked list
Traverse both linked lists simultaneously
Alternate between adding nodes from each list to the new list
If one list is longer than the other, add the remaining nodes to the end of the new list
Q39. Oops concepts with examples and need of them
Oops concepts are fundamental to object-oriented programming. They help in creating modular and reusable code.
Encapsulation - bundling of data and methods that operate on that data
Inheritance - creating new classes from existing ones
Polymorphism - ability of objects to take on many forms
Abstraction - hiding implementation details and showing only functionality
Examples - Car class inheriting from Vehicle class, Animal class having different methods for different species
Need - ...read more
Q40. what is set and frozen set
A set is a collection of unique elements with no specific order, while a frozen set is an immutable set that cannot be changed.
A set does not allow duplicate elements
A frozen set is created using the frozenset() function
Sets are mutable and can be modified, while frozen sets are immutable
Example: set1 = {1, 2, 3} ; frozenset1 = frozenset(set1)
Q41. what is a hyperlink in HTML
A hyperlink in HTML is a clickable text or image that redirects the user to another webpage or resource.
Hyperlinks are created using the tag in HTML.
The 'href' attribute in the tag specifies the URL of the page the link goes to.
Q42. what is CSS and why it is used
CSS stands for Cascading Style Sheets and is used to style the appearance of web pages.
CSS is used to control the layout, colors, fonts, and other visual aspects of a website.
It allows for separation of content from design, making it easier to update and maintain websites.
Selectors are used to target specific HTML elements and apply styles to them.
CSS can be applied inline, embedded within HTML, or linked externally to multiple web pages.
Example:
Q43. How many jumps required to reach the top
It depends on the height of the top and the height of each jump.
The number of jumps required to reach the top depends on the height of the top and the height of each jump.
If the height of the top is 10 feet and the height of each jump is 2 feet, then it would take 5 jumps to reach the top.
If the height of the top is 20 feet and the height of each jump is 3 feet, then it would take 7 jumps to reach the top.
Q44. How to improve performance issue your application,How to find proformance problem in system, How to join us
To improve performance in an application, identify performance problems and join our team.
Analyze application code and identify bottlenecks
Use profiling tools to measure performance
Optimize database queries and improve indexing
Implement caching mechanisms
Upgrade hardware or infrastructure if necessary
Join our team to collaborate on performance improvements
Q45. Will you be willing to travel to customer site on a daily basis?
Yes, I am willing to travel to customer site on a daily basis.
I understand that traveling to customer sites is a crucial part of the job.
I am willing to make the necessary arrangements to ensure that I can travel to customer sites as needed.
I have experience traveling to customer sites in my previous roles.
I am comfortable working remotely and communicating with team members and customers via phone and email when necessary.
Q46. why you want and how many salery you want?
I am seeking a competitive salary that reflects my skills and experience in digital marketing.
I want a salary that is competitive within the industry
I am looking for a salary that reflects my skills and experience in digital marketing
I am open to negotiation based on the responsibilities of the role
Q47. what is deadlock
Deadlock is a situation where two or more processes are unable to proceed because each is waiting for the other to release a resource.
Deadlock occurs when two or more processes are stuck in a circular wait, where each process is waiting for a resource held by another process.
Four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption, and circular wait.
Example: Process A holds resource X and requests resource Y, while Process B holds resource Y a...read more
Q48. System Architecture for higher Experience
System architecture for higher experience involves scalable and efficient design.
Focus on scalability to handle increasing user load
Use microservices architecture for flexibility and easy maintenance
Implement caching mechanisms for faster response times
Utilize load balancing to distribute traffic evenly across servers
Q49. How many pages of FSD have you written?
I have written over 100 pages of FSD in my previous role.
I have experience in writing FSD for various projects
My FSDs are detailed and cover all aspects of the project
I have received positive feedback from stakeholders on my FSDs
Examples: FSD for a banking application, FSD for a healthcare management system
Q50. Reverse a string
Reverse a given string
Use a loop to iterate through the characters of the string and build a new string in reverse order
Alternatively, use built-in functions like reverse() in some programming languages
Consider edge cases like empty string or null input
Q51. Stream and collection api usage
Stream and collection api usage involves manipulating data using streams and collections in Java.
Stream API provides a way to process collections of objects in a functional way.
Collection API provides data structures to store and manipulate groups of objects.
Stream API can be used to filter, map, reduce, and collect data from collections.
Collection API includes interfaces like List, Set, and Map for different data structures.
Q52. How to read error logs and troubleshooting
Reading error logs involves identifying the error message, understanding its context, and tracing its source.
Identify the error message and its severity level
Understand the context of the error, such as the user actions or system state that triggered it
Trace the source of the error by examining the stack trace or related logs
Use debugging tools and techniques to isolate and reproduce the error
Document the error and its resolution for future reference
Various types of Database Languages
Find the second highest salary from employees table.
Q54. Why do we use Static in java
Static keyword in Java is used to create class-level variables and methods.
Static variables are shared among all instances of a class
Static methods can be called without creating an instance of the class
Static blocks are used to initialize static variables
Static import is used to import static members of a class
Q55. -React lifecycle?-Fragment vs React. Fragment? -React pure component?
React lifecycle, Fragment vs React.Fragment, React.PureComponent
React lifecycle consists of mounting, updating, and unmounting phases
Fragment is a shorthand for React.Fragment, used to group multiple elements
React.PureComponent is a class component that implements shouldComponentUpdate method for performance optimization
Q56. JavaScript hoisting?- Let, var and cont difference?
JavaScript hoisting and differences between let, var and const.
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Var declarations are hoisted to the top of their scope, while let and const declarations are not.
Var can be redeclared and reassigned, let can be reassigned but not redeclared, and const cannot be reassigned or redeclared.
Using const is recommended for variables that should not be reassigned, while let ...read more
Q57. what is react what is different classes in react
React is a JavaScript library for building user interfaces.
React is a declarative and efficient library for creating UI components.
It allows developers to build reusable UI components that update efficiently.
React uses a virtual DOM to efficiently update only the necessary parts of the UI.
React supports the use of different classes to define components.
There are two types of classes in React: functional components and class components.
Functional components are simple function...read more
Q58. what is OOPS in programming?
OOPS stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects, which can contain data and code.
OOPS focuses on creating objects that interact with each other to solve a problem.
It involves concepts like classes, objects, inheritance, polymorphism, and encapsulation.
Example: In a banking application, a 'Customer' class can have attributes like name and account balance, and methods like deposit and withdraw.
Q59. On which databases I gained handson experiences
I have gained hands-on experience with MySQL, MongoDB, and PostgreSQL databases.
MySQL
MongoDB
PostgreSQL
Q60. Write a SQL query to find third highest salary from employee table.
SQL query to find third highest salary from employee table.
Use the ORDER BY clause to sort the salaries in descending order
Use the LIMIT clause to limit the result to the third row
Use a subquery to exclude the highest and second highest salaries
Q61. The input string is palindrome or not
Check if a given input string is a palindrome or not
Compare the input string with its reverse to check for palindrome
Ignore spaces and punctuation marks when checking for palindrome
Examples: 'racecar' is a palindrome, 'hello' is not a palindrome
Q62. Write a program to count occurance the letter in a string.
This program counts the occurrence of each letter in a given string.
Use a HashMap to store the count of each letter.
Iterate through the characters of the string and update the count in the HashMap.
Finally, print the count of each letter.
Q63. Find number of words in a sentence
Count the number of words in a sentence
Split the sentence by spaces to get an array of words
Count the number of elements in the array to get the number of words
Consider handling punctuation marks and special characters separately
Q64. What is the default size of an arraylist.
The default size of an ArrayList is 10.
The default initial capacity of an ArrayList is 10.
If the number of elements exceeds the initial capacity, the ArrayList automatically increases its size.
The capacity of an ArrayList can be increased manually using the ensureCapacity() method.
Q65. What is BPM and DMS application
BPM stands for Business Process Management and DMS stands for Document Management System.
BPM is a software solution that helps organizations to manage and optimize their business processes.
DMS is a software solution that helps organizations to manage and store electronic documents.
BPM and DMS applications are often used together to streamline business processes and improve document management.
Examples of BPM and DMS applications include IBM BPM, Appian, and SharePoint.
Q66. Stream api find the second largest salary
Use Stream API to find the second largest salary in an array of salaries.
Use Stream.sorted() to sort the salaries in descending order
Use Stream.skip(1).findFirst() to get the second highest salary
Q67. What is Singleton Class?
A Singleton Class is a class that can only have one instance and provides a global point of access to it.
Singleton Class restricts the instantiation of a class to a single object.
It is used when only one instance of a class is required throughout the system.
It provides a global point of access to the instance.
It is implemented by making the constructor private and providing a static method to access the instance.
Examples include Logger, Configuration Manager, and Database Con...read more
Q68. have you worked on RFP ?
Yes, I have worked on RFPs in my previous roles.
I have experience in creating and responding to RFPs.
I have worked on RFPs for various industries including technology and finance.
I am familiar with the process of gathering information, writing proposals, and submitting bids.
I have also collaborated with cross-functional teams to ensure timely and accurate completion of RFPs.
Q69. what are componenets in react
Components in React are reusable building blocks that encapsulate the UI and its logic.
Components are the building blocks of a React application
They encapsulate the UI and its logic
Components can be reused throughout the application
They can be functional components or class components
Components can have their own state and lifecycle methods
Examples of components in React are buttons, forms, and navigation bars
Q70. How do you manage stakeholders?
Managing stakeholders involves identifying their needs, communicating effectively, and building relationships.
Identify stakeholders and their needs
Communicate regularly and effectively
Build relationships and trust
Manage conflicts and expectations
Involve stakeholders in decision-making
Provide regular updates and feedback
Adapt to changing stakeholder needs
Q71. How to motivate people in sales team
Motivating people in a sales team is crucial for success. It can be done through recognition, incentives, training, and creating a positive work environment.
Recognize and reward achievements to boost morale
Offer incentives such as bonuses or commissions for meeting targets
Provide ongoing training and development opportunities to enhance skills
Create a positive work environment with open communication and teamwork
Set clear goals and provide regular feedback to track progress
En...read more
Q72. Credit process of bank and financials ratios.
Credit process of banks involves assessing the creditworthiness of borrowers using financial ratios.
Credit process involves analyzing financial statements of borrowers
Financial ratios like debt-to-equity ratio, current ratio, and debt service coverage ratio are used to assess creditworthiness
Banks use credit scoring models to evaluate credit risk
Credit process also involves collateral evaluation and loan documentation
Credit process is important for managing credit risk and en...read more
Q73. Joins in SQL
Joins are used in SQL to combine data from two or more tables based on a related column.
Types of joins include inner join, left join, right join, and full outer join.
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, with NULL values for non-matchi...read more
Q74. Insert middle in the linked list
Insert a node in the middle of a linked list
Find the middle node using slow and fast pointers
Insert the new node after the middle node
Update the pointers to maintain the linked list structure
Q75. What are the steps in a mortgage lending process
The mortgage lending process involves several steps from application to closing.
1. Application: Borrower submits application with financial information.
2. Pre-approval: Lender evaluates borrower's creditworthiness and pre-approves the loan.
3. Property appraisal: Lender assesses the value of the property being purchased.
4. Underwriting: Lender reviews all documentation and makes a final decision on the loan.
5. Approval: Loan is approved and terms are finalized.
6. Closing: Borr...read more
Q76. What the standard dpi of all scan images
The standard dpi of scan images varies depending on the purpose and quality required.
DPI stands for dots per inch, which refers to the resolution of an image.
The standard dpi for scanning documents is typically 300 dpi.
For high-quality prints or professional graphics, 600 dpi or higher may be used.
Web images are often saved at 72 dpi for faster loading on screens.
Medical imaging may require higher dpi depending on the specific application.
Q77. Why documents are required?
Documents are required to provide a record of decisions, requirements, and agreements made throughout a project.
Documents serve as a reference point for stakeholders to understand project scope and objectives.
They help in documenting requirements, specifications, and design decisions.
Documents provide a record of agreements made between stakeholders.
They serve as a basis for future audits or reviews of the project.
Documents help in ensuring consistency and clarity in communic...read more
Q78. Write Program with Singleton class
Singleton class ensures only one instance of a class is created and provides a global point of access to it.
Create a private constructor to prevent direct instantiation of the class
Create a private static instance of the class
Create a public static method to get the instance of the class
Ensure thread safety by using synchronized keyword or static initialization
Example: Database connection manager
Q79. What do tou understand by cloud
Cloud refers to the delivery of computing services over the internet.
Cloud computing allows users to access data and applications from anywhere with an internet connection.
It involves storing and processing data on remote servers instead of on a local computer or server.
Cloud services can include infrastructure, platform, and software as a service (IaaS, PaaS, SaaS).
Examples of cloud services include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.
Q80. Write code for counting frequency of character of string.
Count the frequency of each character in a given string.
Create an array to store the frequency of each character.
Iterate through the string and update the count of each character in the array.
Print or return the frequency of each character.
Q81. what is servlet life cycle
Servlet life cycle refers to the sequence of events that occur during the lifespan of a servlet.
Servlet is loaded into memory when the server starts
init() method is called to initialize the servlet
service() method is called to handle client requests
destroy() method is called when the servlet is removed from memory
Servlet can be reloaded if the server is restarted
Q83. What the dpi in scanning image
DPI stands for dots per inch and refers to the resolution of a scanned image.
DPI determines the level of detail and clarity in a scanned image.
Higher DPI results in a higher quality image with more detail.
Common DPI settings for scanning are 300, 600, and 1200.
DPI is important for printing or enlarging scanned images.
Lower DPI can be used for web or screen display where less detail is required.
Q84. what is try with resources
Try with resources is a feature introduced in Java 7 to automatically close resources after use.
It simplifies the code by eliminating the need for a finally block to close the resource
The resource must implement the AutoCloseable interface
Multiple resources can be declared in a single try-with-resources statement
Example: try(FileInputStream fis = new FileInputStream("file.txt")) { //code }
Q85. Internal working of Hashmap
Hashmap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
Hashmap uses an array to store the key-value pairs
The keys are hashed to generate an index in the array
If two keys hash to the same index, a linked list is used to store the values
Retrieving a value involves hashing the key to find the index and then traversing the linked list if necessary
Q86. What are constructor?
Constructors are special methods in a class that are used to initialize objects.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
Constructors can have parameters to initialize object properties.
Example: public class Person { public Person(String name) { this.name = name; }}
Q87. Whats is network and what are the types
A network is a group of interconnected devices that can communicate and share resources. There are two types of networks: LAN and WAN.
A LAN (Local Area Network) is a network that covers a small area, such as a home, office, or building.
A WAN (Wide Area Network) is a network that covers a large geographical area, such as a city, country, or even the world.
Other types of networks include WLAN (Wireless Local Area Network), MAN (Metropolitan Area Network), and CAN (Campus Area N...read more
Q88. reverse the linked list
Reverse a linked list
Iterate through the linked list and change the direction of pointers
Use three pointers to keep track of current, previous, and next nodes
Update the head of the linked list to point to the last node
Q89. Difference between final finally and finalize
final, finally, and finalize are three different concepts in Java.
final is a keyword used to declare a constant value that cannot be changed
finally is a block of code that is executed after a try-catch block, regardless of whether an exception is thrown or not
finalize is a method that is called by the garbage collector before an object is destroyed
final can be used with variables, methods, and classes
finally is used to release resources or perform cleanup operations
finalize i...read more
Q90. React component with states and props uses
React components can have states and props to manage data and communication between components.
States are used to manage data that can change over time within a component.
Props are used to pass data from parent components to child components.
States are mutable and can be changed using setState() method.
Props are read-only and cannot be changed by the child component.
Example:
where 'name' is a prop passed to MyComponent.
Q91. Difference between Array and arraylist.
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array has a fixed length, while ArrayList can grow dynamically.
Array can store both primitive types and objects, while ArrayList can only store objects.
Array uses square brackets [] for declaration, while ArrayList uses angle brackets <>.
Array provides direct access to elements using index, while ArrayList provides methods for accessing and manipulating elements.
Example: String[] nam...read more
Q92. Find the second largest element in an array
Find the second largest element in an array
Sort the array in descending order and return the element at index 1
Iterate through the array and keep track of the largest and second largest elements
Use a priority queue to find the second largest element
Q93. Software testing methodology
Software testing methodology refers to the process of verifying and validating software applications.
It involves planning, designing, executing and reporting tests
Common methodologies include Waterfall, Agile, and DevOps
Testing can be manual or automated
Testing can be functional or non-functional
Testing can be black box or white box
Q94. What is context in react?
Context in React is a way to pass data through the component tree without having to pass props down manually at every level.
Context provides a way to share values like themes, locale preferences, etc. across the component tree.
It helps in avoiding prop drilling, where props are passed down multiple levels of components.
Context consists of two parts: Provider and Consumer. Provider allows components to subscribe to context changes, while Consumer allows components to read cont...read more
Q95. What is redux in react?
Redux is a predictable state container for JavaScript apps, commonly used with React for managing application state.
Redux is a state management library for JavaScript applications.
It helps in managing the state of the application in a predictable way.
Redux stores the entire state of the application in a single immutable state tree.
Actions are dispatched to update the state, and reducers specify how the state changes in response to actions.
Redux is commonly used with React to ...read more
Q96. What is personal loan
A personal loan is a type of unsecured loan that is typically used for personal expenses such as home renovations, weddings, or debt consolidation.
Personal loans are unsecured, meaning they do not require collateral
They are typically used for personal expenses such as home renovations, weddings, or debt consolidation
Interest rates on personal loans can vary based on the borrower's credit score and financial history
Q97. What is account opening
Account opening is the process of creating a new account with a financial institution or service provider.
Account opening involves providing personal information, identification documents, and agreeing to terms and conditions.
It is typically done when opening a bank account, credit card account, investment account, or online account.
The process may vary depending on the type of account and institution, but generally involves filling out forms and verifying identity.
Account op...read more
Q98. have you heard about newgen?
Newgen is a global provider of business process management (BPM), enterprise content management (ECM), and customer communication management (CCM) solutions.
Newgen offers software solutions to help organizations automate and manage their business processes efficiently.
Their BPM software helps streamline workflows and improve operational efficiency.
Their ECM software helps organizations manage and store documents and content in a centralized repository.
Newgen's CCM software en...read more
Q99. Explain OOPs concepts.
OOPs concepts are fundamental principles of object-oriented programming that help in designing and implementing software solutions.
Encapsulation: Bundling data and methods together in a class.
Inheritance: Creating new classes by inheriting properties and behaviors from existing classes.
Polymorphism: Ability of an object to take on many forms.
Abstraction: Hiding complex implementation details and providing a simplified interface.
Encapsulation, inheritance, and polymorphism tog...read more
Q100. Explain working of Arraylist.
ArrayList is a dynamic array that can grow or shrink in size. It stores objects and provides methods for adding, removing, and accessing elements.
ArrayList is part of the Java Collections Framework.
It is implemented as a resizable array.
Elements can be added using the add() method.
Elements can be accessed using the get() method.
Elements can be removed using the remove() method.
The size() method returns the number of elements in the ArrayList.
Example: ArrayList
names = new Arr...read more
Top HR Questions asked in Maharani Wedding Collection
Interview Process at Maharani Wedding Collection
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month