Add office photos
Employer?
Claim Account for FREE

ITnow

3.0
based on 4 Reviews
Filter interviews by

DFE Pharma Interview Questions and Answers

Updated 22 Nov 2024

Q1. - reducing the time complexity of "for each loop"

Ans.

Use indexed for loop instead of for each loop to reduce time complexity.

  • Indexed for loop has a constant time complexity of O(1) whereas for each loop has a time complexity of O(n).

  • Indexed for loop is faster when accessing elements in an array.

  • Example: for (int i = 0; i < array.length; i++) { //access array[i] }

  • Example: for (String str : stringArray) { //access str }

Add your answer

Q2. which language you most prefare

Ans.

I prefer Java as it is versatile, widely used, and has a strong community support.

  • Java is versatile and can be used for a variety of applications

  • Java is widely used in enterprise environments

  • Java has a strong community support with a large number of libraries and frameworks available

Add your answer

Q3. What are classes and Objects

Ans.

Classes are blueprints for creating objects in object-oriented programming. Objects are instances of classes.

  • Classes define the properties and behaviors of objects

  • Objects are instances of classes that contain data and methods

  • Classes can inherit properties and behaviors from other classes

  • Objects can interact with each other by calling methods on each other

Add your answer

Q4. == and === difference with example

Add your answer
Discover DFE Pharma interview dos and don'ts from real experiences

Q5. OOPS Concept ( Explain with example )

Add your answer

Q6. Explain recursion with example

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.8
 • 399 Interview Questions
3.9
 • 186 Interview Questions
4.0
 • 160 Interview Questions
4.1
 • 152 Interview Questions
3.8
 • 142 Interview Questions
3.8
 • 133 Interview Questions
View all
Top ITnow 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
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