Proteus Technologies
10+ Fiat India Automobiles Interview Questions and Answers
Q1. What is deadlock condition in multi threading and how to prevent it?
Deadlock in multithreading occurs when two or more threads are waiting for each other to release resources, causing them to be stuck indefinitely.
Deadlock can be prevented by using proper synchronization techniques like avoiding nested locks, using timeouts, and implementing a deadlock detection algorithm.
One common example of deadlock is the dining philosophers problem, where multiple philosophers are sitting at a table with chopsticks and can only eat if they have both chop...read more
Q2. What are the ways of creating thread
Ways of creating threads include extending the Thread class, implementing the Runnable interface, and using Executor framework.
Extending the Thread class: Create a new class that extends the Thread class and override the run() method.
Implementing the Runnable interface: Create a class that implements the Runnable interface and implement the run() method.
Using Executor framework: Create a thread pool using Executor framework and submit tasks to it for execution.
Q3. What are primary and secondary goals
Primary goals are main objectives to be achieved, while secondary goals are additional objectives that support the primary goals.
Primary goals are the main objectives that an individual or organization aims to achieve.
Secondary goals are additional objectives that support the primary goals.
Primary goals are usually more critical and have higher priority than secondary goals.
Examples: Primary goal of a company may be to increase revenue, while a secondary goal may be to improv...read more
Q4. What is oop? And its concepts
OOP stands for Object-Oriented Programming, a programming paradigm based on the concept of objects.
OOP focuses on creating objects that contain data and methods to manipulate that data.
Key concepts include encapsulation, inheritance, and polymorphism.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Inheritance allows classes to inherit attributes and methods from other classes.
Polymorphism allows objects to be treated as instances o...read more
Q5. How jdbc works drives of jdbc?
JDBC (Java Database Connectivity) is a Java API that allows Java programs to interact with databases.
JDBC uses a driver manager to load the appropriate driver for the specific database being accessed.
It establishes a connection to the database using the DriverManager class.
SQL queries are executed using Statement, PreparedStatement, or CallableStatement objects.
ResultSets are used to retrieve data from the database.
Transactions can be managed using Connection objects.
Q6. Difference between hashset and linkedhashset
HashSet is an unordered collection while LinkedHashSet maintains insertion order.
HashSet does not maintain insertion order, LinkedHashSet maintains insertion order.
HashSet does not allow duplicate elements, LinkedHashSet allows duplicate elements.
HashSet uses hashing mechanism to store elements, LinkedHashSet uses a doubly linked list to maintain order.
Q7. What is wrapper class?
Wrapper class is a class that wraps around a primitive data type and provides additional methods and functionalities.
Wrapper classes in Java are used to convert primitive data types into objects.
They provide methods to perform various operations on the data, such as conversion, comparison, and manipulation.
Examples of wrapper classes in Java include Integer, Double, Boolean, etc.
Q8. Life cycle of servlet & jsp?
Servlet and JSP have different life cycles. Servlet is initialized, service method is called, and then destroyed. JSP is translated to servlet, initialized, service method is called, and then destroyed.
Servlet life cycle: Initialization, service method invocation, destruction.
JSP life cycle: Translation to servlet, initialization, service method invocation, destruction.
Q9. What are packages?
Packages are a way of organizing classes and interfaces in a logical structure in Java.
Packages help in avoiding naming conflicts by grouping related classes and interfaces together.
Packages can be nested within other packages.
Packages are declared using the 'package' keyword at the beginning of a Java file.
Example: 'package com.example.myproject;'
Q10. Why pandas used in data manipulation
Pandas is used in data manipulation due to its ability to handle large datasets, perform data cleaning, and provide powerful data analysis tools.
Pandas provides a DataFrame object that allows for easy manipulation of tabular data
It can handle missing data and perform data cleaning operations
Pandas has powerful data analysis tools such as grouping, filtering, and merging
It can handle large datasets efficiently
Pandas integrates well with other Python libraries such as NumPy and...read more
Q11. Where we used pytesseract library
Pytesseract library is used for optical character recognition (OCR) in Python.
Pytesseract is used to extract text from images and PDFs.
It can be used for automating data entry tasks.
It is commonly used in document management systems.
Pytesseract can be used to extract text from scanned documents.
It can also be used for text recognition in images captured by cameras.
Pytesseract is often used in machine learning projects for text recognition.
Interview Process at Fiat India Automobiles
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month