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();
}
}
Let me know if you'd like these compiled into a PDF or formatted for a presentation or notes!
Good morning sir, glad to introduce myself. My name is D nithin, I am from Anantapur and I recently completed my BTech in Computer science from audisankara collage of engineering and technology.
During my time in college, i developed 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, I have earned certificates in 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.
My hobbies are editing and content creation. My strengths are I am a quick learner and self-motivated person.
My short-term goal is get a job in reputed company.
My long-term goal is to achieve a good position where I build my career.
Thankyou for giving this opportunity!!!
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.
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.
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 membere no. 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?
My hobbies are editing and content creation. I am making creative posts and videos. I also run an Instagram page with over 20,000 followers, where I regularly share useful and interesting content.
One of the key projects is Problogs - a blogging platform. The goal was to creating fully featured blog application where users can create and edit posts, interact with others' content through likes and comments, bookmark their favorite blogs, and manage their own dashboard.
I contributed to both the frontend and some backend parts, On the frontend, we used html,css and javascript to build responsive components and a clean UI. 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 fully functional blog platform that’s deployed and live. It helped me improve my development skills, understand real-world deployment challenges, and gain hands-on experience with version control using Git and GitHub.”