Add office photos
Employer?
Claim Account for FREE

Maventic Innovative Solutions

3.8
based on 79 Reviews
Filter interviews by

Veolia Interview Questions and Answers

Updated 5 Feb 2024

Q1. Can 'this' keyword be equal to null?

Ans.

No, the 'this' keyword cannot be equal to null.

  • The 'this' keyword refers to the current instance of a class.

  • It is used to access the members of the current object.

  • Since 'this' refers to an object, it cannot be null.

View 1 answer

Q2. Why constructor overriding is not allowed in java?

Ans.

Constructor overriding is not allowed in Java to maintain the integrity of the object creation process.

  • Constructor is used to initialize the object state, and allowing overriding can lead to unexpected behavior.

  • Inheritance allows the subclass to inherit the superclass constructor, but not override it.

  • If a subclass needs to modify the behavior of the superclass constructor, it can use constructor chaining or call a separate method.

  • Example: If a subclass overrides the superclas...read more

Add your answer

Q3. Why is normalization used and what is 3NF with example?

Ans.

Normalization is used to eliminate data redundancy and improve data integrity. 3NF ensures that each attribute is dependent on the primary key.

  • Normalization helps in organizing data in a structured manner

  • It eliminates data redundancy and inconsistencies

  • 3NF ensures that each attribute is dependent on the primary key

  • For example, a table with columns like Order ID, Product ID, and Customer ID can be normalized to eliminate redundant data

Add your answer

Q4. Can static and public be interchanged ?

Ans.

No, static and public cannot be interchanged.

  • Static and public are two different keywords in programming.

  • Static is used to define a variable or method that belongs to the class itself, rather than an instance of the class.

  • Public is an access modifier that allows the variable or method to be accessed from anywhere in the program.

  • Interchanging static and public would result in a syntax error.

  • For example, in Java, the following code is valid: public static int myVariable = 10;

  • Bu...read more

View 1 answer
Discover Veolia interview dos and don'ts from real experiences

Q5. What is inheritance with code. Difference between overloading and overriding.

Ans.

Inheritance is a mechanism in OOP where a new class is derived from an existing class. Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in the subclass with the same name and parameters as in the superclass.

  • Inheritance allows for code reuse and promotes code organization.

  • Overloading is used to have multiple methods with the same name but different parameters.

  • Overriding is used to change the implementation of a m...read more

Add your answer

Q6. Types of Constructors

Ans.

Types of Constructors

  • Default constructor: No arguments, initializes object with default values

  • Parameterized constructor: Takes arguments and initializes object with provided values

  • Copy constructor: Creates a new object by copying the values of an existing object

  • Static constructor: Initializes static members of a class

  • Private constructor: Restricts the creation of objects from outside the class

View 1 answer

Q7. 1. Sort characters in a string based on its frequency?

Ans.

Sort characters in a string based on its frequency.

  • Create a dictionary to store character frequency

  • Sort the dictionary based on frequency

  • Reconstruct the string using the sorted dictionary

Add your answer

Q8. Difference between compiler and interpreter

Ans.

Compiler translates entire program at once, while interpreter translates line by line.

  • Compiler converts source code into machine code before execution.

  • Interpreter converts source code into machine code during execution.

  • Compiler produces an executable file that can be run independently.

  • Interpreter does not produce an executable file, it executes code directly.

  • Compiler optimizations can result in faster execution.

  • Interpreter provides easier debugging and error handling.

  • Examples...read more

View 1 answer

Q9. why we should use polymorphism?

Ans.

Polymorphism allows for flexibility and extensibility in code by enabling objects to take on multiple forms.

  • Polymorphism allows for code reuse and simplifies maintenance.

  • It enables the creation of generic code that can work with objects of different classes.

  • It allows for the creation of interfaces and abstract classes, which can be implemented by multiple classes.

  • Examples include using a parent class to represent multiple child classes, or implementing an interface to allow f...read more

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

Interview Process at Veolia

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

Top Interview Questions from Similar Companies

3.6
 • 4.5k Interview Questions
3.4
 • 650 Interview Questions
3.8
 • 401 Interview Questions
3.3
 • 308 Interview Questions
3.6
 • 174 Interview Questions
4.1
 • 141 Interview Questions
View all
Top Maventic Innovative Solutions 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