IT Fresher Interview Questions and Answers (2026)

InterviewVox team · 12 November 2026 · 12 min read

← All interview guides

As a fresher, nobody expects you to know everything. What interviewers check is whether your basics are clear, whether you can explain them simply, and whether you really built the projects on your resume. The questions below are the ones asked again and again in IT fresher interviews at service companies, product companies and startups.

Tip: Do not memorise these answers word for word. Understand each idea, then practise saying it out loud with a small example. Interviewers notice the difference immediately.

Programming and OOP

What are the four pillars of object-oriented programming?

Encapsulation: keeping data and the methods that use it together in a class, and hiding internal details (for example private fields with getters and setters).

Abstraction: showing only what is needed and hiding how it works, for example an interface or abstract class.

Inheritance: a class reuses and extends another class, for example Car extends Vehicle.

Polymorphism: one name, many forms. Method overloading (same name, different parameters) is compile-time; method overriding (a child class redefines a parent method) is run-time.

What is the difference between an abstract class and an interface?

An abstract class can have normal methods, fields and constructors, and a class can extend only one of them.

An interface defines a contract of methods; a class can implement many interfaces. (In Java 8 and later, interfaces can also have default and static methods.)

Use an abstract class for shared base behaviour, an interface for a capability many unrelated classes can have.

What is the difference between == and .equals() in Java?

== compares references, meaning whether both variables point to the same object. .equals() compares content, as defined by the class. For Strings, always use .equals() to compare text.

What is exception handling?

It is how a program deals with errors at run time without crashing. Risky code goes in try, the error is handled in catch, and finally runs whether or not an error happened, for example to close a file.

Give a small example, such as catching a divide-by-zero or a file-not-found error.

Which language are you most comfortable in, and why?

Pick one language and be honest. Say what you built with it and one feature you like, for example "Java, because I used it for my final-year project and I like how strongly typed code catches mistakes early."

Expect follow-up questions in that language, so choose the one you know best, not the one you think sounds impressive.

DBMS and SQL

What is the difference between a primary key, a unique key and a foreign key?

Primary key: uniquely identifies each row; cannot be NULL; one per table.

Unique key: values must be unique but (in most databases) NULL is allowed; a table can have several.

Foreign key: a column that refers to the primary key of another table, which keeps related data consistent.

What is normalization?

Organising tables to reduce duplicate data and avoid update problems.

1NF: each column holds a single value. 2NF: 1NF plus every non-key column depends on the whole primary key. 3NF: 2NF plus no non-key column depends on another non-key column.

Example: storing a customer's city in every order row breaks 3NF; keep it once in a Customers table.

Explain the types of JOIN.

INNER JOIN: only rows that match in both tables.

LEFT JOIN: all rows from the left table, with matching rows from the right (NULL where there is no match). RIGHT JOIN is the mirror.

FULL OUTER JOIN: all rows from both tables.

Write a query to find the second-highest salary.

One common answer: SELECT MAX(salary) FROM employees WHERE salary < (SELECT MAX(salary) FROM employees);

Mention that window functions such as DENSE_RANK() also work and handle "Nth highest" more generally.

What are ACID properties?

Atomicity: a transaction happens completely or not at all. Consistency: data stays valid. Isolation: transactions running together do not disturb each other. Durability: once committed, data is saved even after a crash.

Example: a bank transfer debits one account and credits another; both happen, or neither does.

What is the difference between DELETE, TRUNCATE and DROP?

DELETE removes selected rows (with WHERE) and can be rolled back in a transaction. TRUNCATE removes all rows quickly and keeps the table structure. DROP removes the whole table, structure included.

Operating systems and networks

What is the difference between a process and a thread?

A process is a running program with its own memory. A thread is a smaller unit of work inside a process; threads of the same process share its memory, so they are lighter but need care with shared data.

What is a deadlock?

Two or more processes wait for each other forever, each holding a resource the other needs.

It needs four conditions together: mutual exclusion, hold and wait, no pre-emption and circular wait. Breaking any one prevents it, for example by always acquiring resources in the same order.

What happens when you type a URL in the browser and press Enter?

The browser finds the server's IP address through DNS, opens a TCP connection (with TLS for HTTPS), sends an HTTP request, the server returns a response (HTML), and the browser renders the page and fetches its CSS, JavaScript and images.

This question tests whether you can connect the pieces, so tell it as a short story in order.

What is the difference between TCP and UDP?

TCP is connection-based and reliable: data arrives in order and lost packets are re-sent (web pages, email).

UDP is connectionless and faster but does not guarantee delivery (video calls, online games, DNS lookups).

What is the difference between HTTP and HTTPS?

HTTPS is HTTP over an encrypted TLS connection, so data such as passwords cannot be read or changed on the way, and the certificate proves you are talking to the real site.

Data structures and coding basics

What is the difference between an array and a linked list?

An array stores items next to each other in memory: reading by index is fast (O(1)), but inserting in the middle means shifting items.

A linked list stores items as nodes pointing to the next one: inserting and deleting is easy once you are at the position, but reaching an item means walking from the start (O(n)).

What is the difference between a stack and a queue?

A stack is last in, first out (LIFO), like a pile of plates; used for undo and function calls.

A queue is first in, first out (FIFO), like a ticket line; used for task scheduling and printing.

What is Big-O notation?

A way to describe how running time or memory grows as the input grows. O(1) stays the same, O(log n) grows slowly (binary search), O(n) grows in line with the input (one loop), O(n²) grows fast (two nested loops).

  • Reverse a string, and check whether it is a palindrome.
  • Find the largest and second-largest number in an array.
  • Count how many times each character appears in a string.
  • Check whether a number is prime; print the Fibonacci series.
  • Find duplicates in an array; remove duplicates from a sorted array.
  • Binary search on a sorted array.

These are the coding questions freshers get most often. In the interview, think aloud: explain your approach first, write clean code, then test it with one normal case and one edge case (an empty array, a single character).

Your final-year project

Almost every fresher interview spends time on your project, and many candidates lose marks here because they cannot explain their own work. Prepare a clear two-minute explanation and expect follow-up questions.

  1. The problem: what does the project solve, and for whom?
  2. Your role: what did you personally build? Interviewers will ask, so be precise.
  3. The technology: languages, frameworks and database, and why you chose them.
  4. One challenge: a real problem you hit and how you solved it.
  5. What you would improve: shows you can judge your own work.

Why did you use this technology in your project?

Give a practical reason, for example "We used MySQL because our data was structured with clear relationships, and we already knew SQL from our DBMS course." Honest and specific beats a buzzword answer.

Practise your first technical interview

Book a one-to-one mock interview with an experienced IT professional. You will be asked fresher-level technical questions live, including about your project, and get written feedback on what to improve before the real interview.

Book a mock interview

More guides for freshers