Brototype
FTS Building Systems Interview Questions and Answers
Q1. how multiple inheritance is made possible in java
Java does not support multiple inheritance, but it can be achieved through interfaces.
Java does not allow multiple inheritance of classes due to the diamond problem.
However, multiple inheritance can be achieved through interfaces.
A class can implement multiple interfaces, which can have their own default implementations.
Example: class A implements Interface1, Interface2 { }
Q2. explain the process of execption handling
Exception handling is the process of handling errors and unexpected events in a program.
Exceptions are thrown when an error occurs in the program.
The try-catch block is used to handle exceptions.
The catch block catches the exception and handles it appropriately.
Finally block is used to execute code regardless of whether an exception was thrown or not.
Exception handling helps in making the program more robust and prevents it from crashing.
Q3. what is inheritance in java
Inheritance in Java allows a class to inherit properties and behaviors from another class.
Inheritance enables code reusability and promotes the concept of hierarchical classification.
Subclasses can access the methods and fields of their superclass.
Example: class Dog extends Animal, where Dog inherits properties and behaviors from Animal.
Q4. what is multithreadind
Multithreading is a programming concept where multiple threads within a process execute independently to improve performance.
Multithreading allows for concurrent execution of tasks within a single process
Threads share the same memory space, allowing for efficient communication and data sharing
Examples include running multiple tasks simultaneously in a web server or processing multiple data streams in a video editing software
Q5. what is a calss
A class is a blueprint for creating objects in object-oriented programming.
Classes define the properties and behaviors of objects.
Objects are instances of classes.
Classes can inherit properties and behaviors from other classes.
Example: Class 'Car' may have properties like 'color' and 'model', and behaviors like 'drive' and 'stop'.
Q6. what is oops,java
OOPs (Object-Oriented Programming) is a programming paradigm based on the concept of objects, which can contain data and code.
OOPs focuses on creating reusable code by organizing data into objects and defining their behavior through methods.
Java is a popular programming language that supports OOPs principles such as encapsulation, inheritance, polymorphism, and abstraction.
Example: In Java, a class 'Car' can have attributes like 'model' and 'color' and methods like 'drive()' ...read more
Q7. Oops concept in java
Oops concept in Java refers to Object-Oriented Programming principles like Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects to be treated as instances of their parent class.
Abstraction hides the implementation details and only shows the necessary features to the outsid...read more
Interview Process at FTS Building Systems
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month