Tectoro Consulting
Ukb Electronics Interview Questions and Answers
Q1. What is method overloading and method overriding ?
Method overloading is having multiple methods in the same class with the same name but different parameters. Method overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Method overloading is achieved by having methods with the same name but different parameters in the same class.
Method overriding is when a subclass provides a specific implementation of a method that is already provided by its superclass.
Example of method ...read more
Q2. 1 coding question remove duplicate elements in string using recursion
Remove duplicate elements in string using recursion
Create a recursive function that takes a string and a set to keep track of unique characters
Check if the current character is already in the set, if so skip it
Append the current character to the result and add it to the set
Recursively call the function with the remaining substring
Q3. What is Encapsulation ?
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit, known as a class.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
It allows for better control over the data by preventing direct access from outside the class.
Encapsulation also helps in achieving data abstraction, where the internal details of an object are hidden and only necessary information is exposed.
Example: In a class repres...read more
Q4. What is Exceptional handling?
Exception handling is the process of responding to the occurrence of exceptions during program execution.
Exception handling allows developers to gracefully handle errors and prevent program crashes.
It involves using try, catch, and finally blocks to handle exceptions.
Examples of exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Q5. Tell about java?
Java is a popular programming language known for its platform independence and object-oriented approach.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
It is object-oriented, allowing for modular and reusable code
Java is widely used for developing web applications, mobile apps, and enterprise software
Popular Java frameworks include Spring, Hibernate, and Apache Struts
Q6. How to find a missing number from a big list or array of unsorted numbers
Interview Process at Ukb Electronics
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month