TCS
Herfy Food Services Interview Questions and Answers
Q1. What is stored procedure?
Stored procedure is a precompiled collection of SQL statements that can be executed by calling the procedure name.
Stored procedures are stored in the database and can be reused multiple times.
They can accept input parameters and return output parameters.
They help improve performance by reducing network traffic and improving security.
Examples: sp_GetCustomerDetails, sp_InsertEmployee
Q2. What is abstract class
Abstract class is a class that cannot be instantiated and is used as a blueprint for other classes to inherit from.
Cannot be instantiated directly
Can have abstract methods that must be implemented by subclasses
Can have non-abstract methods that can be inherited by subclasses
Used to define common behavior for subclasses
Q3. What are access modifier
Access modifiers are keywords in programming languages that define the accessibility of classes, methods, and variables.
Access modifiers control the visibility and accessibility of classes, methods, and variables in a program.
Common access modifiers include public, private, protected, and default (package-private).
Public access modifier allows access from any other class.
Private access modifier restricts access to only within the same class.
Protected access modifier allows ac...read more
Q4. What is functional interface
A functional interface is an interface that contains only one abstract method.
Functional interfaces can have multiple default or static methods, but only one abstract method.
Functional interfaces are used in lambda expressions and method references.
Examples of functional interfaces in Java include Runnable, Callable, and Comparator.
Q5. What is method overloading
Method overloading is when multiple methods in a class have the same name but different parameters.
Allows multiple methods with the same name but different parameters to be defined in a class
The compiler determines which method to call based on the number and type of arguments passed
Example: having multiple 'calculate' methods in a class with different parameter types like int, double, etc.
Q6. What is oops in java
Oops in Java stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
Oops in Java focuses on creating objects that interact with each other to solve a problem
It involves concepts like classes, objects, inheritance, polymorphism, and encapsulation
Example: Creating a class 'Car' with properties like 'make', 'model', and methods like 'drive', 'stop'
Q7. Difference between .net and c#
C# is a programming language while .NET is a framework that supports multiple languages including C#.
C# is a programming language developed by Microsoft.
.NET is a framework developed by Microsoft that supports multiple languages including C#.
C# is used to write code, while .NET provides libraries and tools for building applications.
C# code is compiled into Intermediate Language (IL) which runs on the .NET Common Language Runtime (CLR).
More about working at TCS
Interview Process at Herfy Food Services
Top Full Stack Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month