Add office photos
Engaged Employer

TO THE NEW

3.7
based on 604 Reviews
Video summary
Filter interviews by

Global Infrasolutions Interview Questions and Answers

Updated 22 Jan 2025
Popular Designations

Q1. Class Student{ int marks, String name } Write a single java 8 Stream Operation to print the name of student having second highest marks.

Ans.

Using Java 8 Stream, find and print the name of the student with the second highest marks.

  • Sort the students based on marks in descending order

  • Skip the first student (highest marks) and find the second student

  • Print the name of the second student

Add your answer

Q2. Return k the element from the end of a linked list

Ans.

Return the kth element from the end of a linked list

  • Traverse the linked list to find the length of the list

  • Calculate the position of the kth element from the beginning

  • Traverse the list again to find the kth element from the end

Add your answer

Q3. Iterate hashSet and insert the value inside it

Ans.

Iterate and insert values into a hashSet in Java

  • Create a HashSet object

  • Use a for loop to iterate over the elements to be inserted

  • Call the add() method on the HashSet object to insert each element

Add your answer

Q4. What is redux What are hooks

Ans.

Redux is a predictable state container for JavaScript apps. Hooks are a new addition in React 16.8 that lets you use state and other React features without writing a class.

  • Redux is a state management tool commonly used with React to manage application state in a predictable way

  • Hooks are a new addition in React 16.8 that allow you to use state and other React features without writing a class

  • Examples of hooks include useState, useEffect, useContext, etc.

Add your answer
Discover Global Infrasolutions interview dos and don'ts from real experiences

Q5. What is Collection?

Ans.

A collection is a group of objects or data structures that are stored and manipulated together.

  • Collections can be used to store and manage multiple elements of the same type.

  • Examples of collections include arrays, lists, sets, and maps.

  • Collections provide methods for adding, removing, and accessing elements within the group.

Add your answer

Q6. OOPS concepts with example

Ans.

OOPS concepts are fundamental to object-oriented programming. They include inheritance, encapsulation, abstraction, and polymorphism.

  • Inheritance allows a class to inherit properties and methods from another class.

  • Encapsulation is the practice of hiding data and methods within a class, so they can only be accessed through public methods.

  • Abstraction is the process of simplifying complex systems by breaking them down into smaller, more manageable parts.

  • Polymorphism allows object...read more

Add your answer

Q7. Hash Map Working

Ans.

Hash map is a data structure that stores key-value pairs and allows for efficient retrieval of values based on keys.

  • Hash map uses a hash function to map keys to indices in an array.

  • Collision handling is important in hash maps to deal with multiple keys hashing to the same index.

  • Common operations on hash maps include insertion, deletion, and lookup.

  • Example: HashMap<String, Integer> map = new HashMap<>(); map.put("key", 123); int value = map.get("key");

Add your answer

Q8. Code snippt of oops

Ans.

Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.

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

  • Inheritance: creating new classes based on existing classes

  • Polymorphism: the ability for objects to be treated as instances of their parent class

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

Interview Process at Global Infrasolutions

based on 14 interviews
4 Interview rounds
Resume Shortlist Round
One-on-one Round
Technical Round
HR Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.8
 • 34 Interview Questions
4.3
 • 33 Interview Questions
3.3
 • 21 Interview Questions
3.7
 • 16 Interview Questions
3.7
 • 15 Interview Questions
3.6
 • 12 Interview Questions
View all
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