Add office photos
Engaged Employer

Changejar Technologies

2.9
based on 44 Reviews
Filter interviews by

P R L Projects & Infrastructure Interview Questions and Answers

Updated 13 Sep 2024

Q1. what happens a primitive data type is passed in a method call and non-primitive data types are passes? when would there be change in value after downstream operation and opposite

Ans.

Primitive data types are passed by value, while non-primitive data types are passed by reference. Changes in value can occur after downstream operations for non-primitive data types.

  • Primitive data types (int, float, char, etc.) are passed by value, meaning a copy of the value is passed to the method. Changes made to the parameter inside the method do not affect the original value.

  • Non-primitive data types (objects, arrays, etc.) are passed by reference, meaning the memory addr...read more

Add your answer

Q2. what are the common annotations used in spring boot

Ans.

Common annotations used in Spring Boot for backend development

  • 1. @RestController - used to define a controller and to indicate that the return value of the methods should be directly written to the HTTP response body

  • 2. @RequestMapping - used to map web requests to specific handler methods

  • 3. @Autowired - used for automatic dependency injection

  • 4. @Service - used to indicate that a class is a service

  • 5. @Repository - used to indicate that a class is a repository

  • 6. @Component - us...read more

Add your answer

Q3. whats the difference between == and .equal()?

Ans.

The difference between == and .equal() is that == is used to compare values for equality, while .equal() is a method used to compare objects for equality.

  • The == operator is used to compare primitive data types like integers, strings, etc. for equality.

  • The .equal() method is used to compare objects in Java for equality. It is typically overridden in classes to define custom equality logic.

  • Example: int a = 5; int b = 5; System.out.println(a == b); // true

  • Example: String str1 = ...read more

Add your answer

Q4. Is Javascript multithreaded or single threaded

Ans.

Javascript is single threaded.

  • Javascript is single threaded, meaning it can only execute one piece of code at a time.

  • This is because of the event loop in Javascript, which manages the execution of code.

  • Asynchronous operations in Javascript, like setTimeout or AJAX requests, are handled by the event loop.

  • Web Workers can be used to achieve multithreading in Javascript for CPU-intensive tasks.

Add your answer
Discover P R L Projects & Infrastructure interview dos and don'ts from real experiences

Q5. Stream API, advantages and uses

Ans.

Stream API is a powerful tool in Java for processing collections of objects.

  • Advantages include concise code, improved performance, and ease of parallel processing.

  • Uses include filtering, mapping, sorting, and reducing data in collections.

  • Example: stream.filter(x -> x > 5).map(x -> x * 2).collect(Collectors.toList());

Add your answer

Q6. DB Schema of one of my project

Ans.

The DB schema of my project includes tables for users, products, orders, and reviews.

  • Users table with columns for user ID, username, email, password

  • Products table with columns for product ID, name, price, description

  • Orders table with columns for order ID, user ID, product ID, quantity

  • Reviews table with columns for review ID, product ID, user ID, rating, comment

Add your answer

Q7. Reverse a string

Ans.

Reverse a string by iterating through the characters and swapping them

  • Create an empty string to store the reversed string

  • Iterate through the characters of the input string from end to start

  • Append each character to the empty string to reverse the string

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

Interview Process at P R L Projects & Infrastructure

based on 3 interviews in the last 1 year
Interview experience
3.7
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
Get AmbitionBox app

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