OOPS stands for Object-Oriented Programming System. It is a programming approach that organizes code into objects and classes and makes it more structured and easy to manage.
The four main principles of OOPs are:
1. Encapsulation – Binding data and methods into a single unit (class), and restricting direct access to data.
2. Abstraction – Hiding internal implementation and showing only essential features to the user.
3. Inheritance – A class can inherit properties and methods from another class, promoting reusability.
4. Polymorphism – The same function or method behaves differently in different situations (like method overloading and overriding)
1. Class
Definition: Blueprint of an object.
Example:
class Car {
void start() {
System.out.println("Car started");
}
}
2. Object
Definition: Instance of the class.
Example:
public class Main {
public static void main(String[] args) {
Car myCar = new Car(); // Object created
myCar.start();
}
}
3. Inheritance
Definition: One class acquires methods and properties from another class.
Example:
class Animal {
void speak() {
System.out.println("Animal speaks");
}
}
class Dog extends Animal {
void bark() {
System.out.println("Dog barks");
}
}
public class Main {
public static void main(String[] args) {
Dog d = new Dog();
d.speak(); // Inherited method
d.bark();
}
}
4. Encapsulation
Definition: Binding data and methods into a single unit, like a class.
Example:
class Student {
private int marks; // Private variable
public void setMarks(int m) {
marks = m;
}
public int getMarks() {
return marks;
}
}
public class Main {
public static void main(String[] args) {
Student s = new Student();
s.setMarks(90);
System.out.println(s.getMarks());
}
}
5. Abstraction
Definition: Hiding implementation and showing essential features.
Example:
abstract class Shape {
abstract void area();
}
class Circle extends Shape {
void area() {
System.out.println("Area = 3.14 * r * r");
}
}
public class Main {
public static void main(String[] args) {
Shape s = new Circle();
s.area();
}
}
6. Polymorphism
Definition: It means "many forms" — the same function or method can perform different tasks based on how it is called.
a) Method Overloading
class Calculator {
int add(int a, int b) {
return a + b;
}
int add(int a, int b, int c) {
return a + b + c;
}
}
public class Main {
public static void main(String[] args) {
Calculator calc = new Calculator();
System.out.println(calc.add(2, 3)); // 5
System.out.println(calc.add(2, 3, 4)); // 9
}
}
b) Method Overriding
class Animal {
void sound() {
System.out.println("Animal makes a sound");
}
}
class Cat extends Animal {
void sound() {
System.out.println("Meow");
}
}
public class Main {
public static void main(String[] args) {
Animal a = new Cat(); // Runtime polymorphism
a.sound();
}
}
Self introduction
Good morning sir, glad to introduce myself. My name is D nithin, I am from tumkur and I recently completed my BTech in Computer science from audisankara collage of engineering and technology.
During my academic journey, i have build strong foundation in java, python,sql and web development.
I have worked on project called "Problogs - a blogging platform" which is web application that allows user can create, edit and interact with blog post. Which successfully deployed in render.app. in addition,
And I completed internship at Demy software solutions. Which helped me to understand real world project deployments. I completed certificates in java, Frontend developement By Meta, Python and Web development by IBM to strengthen my skills.
Apart from academics i actively participated in hackathons and events which helped me to improve my teamwork leadership and communication skills.
Thankyou for giving this opportunity!!!
2. What are your strengths?
“My strengths are problem-solving and quick learning I am comfortable learning new tools and technologies when required.
3. What are your weaknesses?
my weaknesses is sometimes i spend extra time to perfecting my work, which can slow me down. However, I am improving this. by setting time limits and focusing on delivering efficient solutions rather than perfect ones.”
4. Why do you want to work here?
“I want to work here because this company provides a good learning environment and opportunities to work on real-world projects. I admire the company’s focus on innovation and professional growth, which aligns well with my career goals.”
5. How do you handle stress and pressure?
I handle stress by organizing my tasks, prioritizing important work, and staying calm. If needed, I break problems into smaller parts and focus on solving them step by step.”
6. Do you prefer working alone or in a team?
I am comfortable working both independently and in a team. team collaboration because it helps learning new ideas and solving problems faster.”
8. What motivates you?
I am motivated by solving challenging problems, learning new skills. Appreciation for good work.
9. How do you prioritize your tasks?
I complete high-priority tasks first and set deadlines to manage my time efficiently.”
10. How do you handle failure?
“I see failure as a learning opportunity. learn from my mistakes, and apply future”
11. Describe a challenging situation and how you solved it.
“During my college project, we were given a problem statement. I faced difficulty understanding a technical requirement. I broke the problem into smaller parts, researched the topic, and discussed it with my teammates. This helped us complete the task successfully and improved my understanding.”
12. Why should we hire you?
You should hire me because I have a strong foundation in technical skills along with hands-on experience from projects. I am a quick learner, comfortable working in a team, and confident that I can contribute effectively to the team.
13. What do you know about our company?
Answer:
“I know that your company focuses on quality solutions, innovation, and employee growth. It has a good reputation in the industry, and I believe it is a great place to learn and build a long-term career.”
15. What are your salary expectations?
As a fresher, i expectations range from 4 to 5 lpa and i open to discussion
Are you willing to relocate?
Definitely! I’m open to relocating. I believe new locations bring new challenges and opportunities that will help me grow both professionally and personally.”
Are you comfortable with night shift or rotational shift?
“Yes, I’m comfortable with night shifts. I know it’s part of the job sometimes, and I’m flexible with my working hours.”
Do you have any experience in team members or lead?
During my college projects and internships, I had the opportunity to work as a team lead. I was responsible for coordinating tasks, guiding team members. These experiences helped me improve my leadership and teamwork skills.”
Where do you see yourself in 3 years?
I see myself as a more experienced professional in my field, taking on bigger responsibilities and growing along with the company.
What are your hobbies?
surfing the internet to learn new things or editing
Why do you want to join TCS?
I want to join TCS because it is a trusted global company that offers excellent learning opportunities, job stability, and a chance to work on innovative projects. It’s the perfect place for me to start and grow my career in the IT field.
TCS is a global IT services company with strong learning culture, diverse projects, and long-term career growth.
As a fresher, I’m looking for a place where I can build strong fundamentals, get exposure to real-world projects,
What do you know about TCS?
Tata Consultancy Services Limited (TCS), a part of the Tata Group corporation with headquarters in Mumbai, India, is an international provider of IT services, business solutions, and outsourcing.
what are you doing these past 6 months ?
Over the last 6 months, I focused on upskilling myself through online courses and hands-on practice. I revised core concepts like Java, Python, and SQL, practiced coding problems, and also started learning AI to build a foundation in emerging technologies. This helped me become more confident and job-ready
You already attended TCS interview before, what changed now?”
correct this : i give interview previously i cleared all rounds and wait 4 moths for result but unfortunatly i get rejected mail. over few past months i upskilling my selp through course and revise all core concepts like java, python, sql and now started lewarning ai'
Do you have another company offers?
Yes, I have one more offer. But I’m very interested in TCS and it is my dream company . because of the learning opportunities and long-term growth, so I wanted to attend this interview seriously.
Project overview
Project 1: ProBlogs — A Blogging PlatformOne of the key projects is Problogs - a blogging platform. where users can create and edit posts, interact with others' content.
this is a team project . I contributed to both the frontend and some backend parts, On the frontend, we used html,css and javascript to build User friendly interface. for user authentication we user google auth 2.0 to secure login . for database we use Mongodb atlas. For deployment, we used Vercel for the frontend and Render for the backend.
As a result, we delivered a simple functional blog platform. its successfuly deployed . It helped me improve my development skills, understand real-world deployment challenges, and gain hands-on experience with version control using Git and GitHub.”
1. What challenges did you face?
The main challenges are making a smooth user-friendly interface and successfully deploying the project. I solved this by breaking features into smaller parts and solve them individually.”
2. what Tech Stack Used
3. What did you learn from this project?
It helped me improve my development skills, understand real-world deployment challenges,
4. How did you store user data.
In ProBlogs, blog data are stored using MongoDB Atlas, User data such as login details and blog content are stored as documents in MongoDB collections. My involvement with the database was at a basic level, and I am currently learning backend and database concepts in more depth.”
5. How would you improve this project in the future?
“I would add like add fully functional backend , deployement successfuly without bugs
Project 2: justnk.in — Website Management
WordPress allows faster development, easy content management, and scalability, which was suitable for frequent updates.
What tech stack used ?
What kind of tools are available on your website?
The website provides simple utility tools like age calculator , word counter and educational updates designed to help users access information easily.
Project 3: ProSkill — Educational Website
Internship
🔹 Technologies Used During Internship
-
Java
-
HTML, CSS, JavaScript
-
Git & GitHub
-
Visual Studio Code
What did you learn from your internship?
What was the biggest challenge during your internship?
Understanding existing code written by others was challenging initially, but it improved my reading and debugging skills.
-------------------Java----------------------
OOPS in Java
Inheritance: one class acquires the properties and methods of another class.
🔷 Types of Inheritance in Java
1️⃣ Single Inheritance
2️⃣ Multilevel Inheritance
3️⃣ Hierarchical Inheritance
❌ Multiple inheritance is NOT supported using classe
🟢 1️⃣ Single Inheritance
📌 Definition
One child inherits from one parent.
🟡 2️⃣ Multilevel Inheritance
📌 Definition
Inheritance chain (A → B → C).
🔵 3️⃣ Hierarchical Inheritance
📌 Definition
Multiple child classes inherit from one parent.
Interface
An interface is a collection of abstract methods and is also called a blueprint of a class. It allows you to define methods without their implementations. An interface may also contain constants, default methods, static methods, and nested types.
You cannot create (instantiate) an object of an interface.
Example:
public class Main {
public static void main(String[] args){
Animal ani = new Dog();
ani.sound();
}
--------------------------------------------------
Exception Handling in Java
Exception handling is used to handle runtime errors to prevent system crash.
Exception
An exception is an abnormal event that occurs during program execution.
Keywords Used in Exception Handling
- try: Code that may cause an exception
- catch: Used to handle the exception thrown in the try block
- finally: Executes always
- throws: Used to declare exceptions
- throw: Used to throw an exception
try {
int a = 10 / 2;
} catch (Exception e) {
System.out.println("Error");
} finally {
System.out.println("Always executed");
}
Types of Exceptions
1️⃣ Checked Exceptions
Checked exceptions are checked at compile time. Example: IOException
2️⃣ Unchecked Exceptions
Unchecked exceptions occur at runtime. Example: ArithmeticException
Thread
A thread is a lightweight process that enables parallel execution of code.
Multithreading
Multithreading is the process of executing multiple threads simultaneously.
Java Collections Framework
Set of classes and interfaces.
1️⃣ Collection
2️⃣ List
List is an ordered collection that allows duplicate elements.
- ArrayList
- LinkedList
- Stack (LIFO)
3️⃣ Set
Set does not allow duplicate elements.
- HashSet
- LinkedHashSet
- TreeSet
4️⃣ Queue
Queue follows FIFO order.
5️⃣ Map
Stores data in key–value pairs.
- HashMap
- LinkedHashMap
- TreeMap
- Hashtable