Most frequently asked interview Questions
In this article, we will cover some of the interview questions asked in campus placement interviews.These are most frequently asked interview questions.
I will keep updating questions in this post, so keep visiting :) .
If you have any questions or wants to submit your questions comment below.
I will keep updating questions in this post, so keep visiting :) .
If you have any questions or wants to submit your questions comment below.
Sources For Preparation:
- Geeksforgeeks for all concepts
- Indiabix, http://pariksha.co/ for aptitude
- BenchResources for java collections and diffrences
- Hackerrank, hackerearth for coding
OOP INTERVIEW QUESTIONS
- What is Object & Class.Give real time examples.
- Why OOP? Other programming Paradigms(You should at least know names e.g. Procedural, Functional Programming)
- What is Abstraction, Encapsulation, Data hiding. Examples
- Inheritance, Why it is important?( Reusability)
- Polymorphism, Runtime and compile time (Explain it with programming example).
- Difference Between Abstract class and Interface. When to use abstract class and when to use Interface.
- Which OOP concepts you have used while implementing your project.
- Aggregation and composition. Real life examples
JAVA INTERVIEW QUESTIONS:
- Abstraction, Interface, Runtime polymorphism in java
- Method overloading vs Overriding
- Why main method is static?
- Static, final, finalize(), Access modifiers, super, finally
- Object Class, Its methods (Every class directly or indirectly inherits object class)
- Static block , when it is executed
- C++ vs java
- Exception handling, Types of Exceptions (checked unchecked, Examples), finally block. When finally block will be skipped?
- Most important. If interview asks which is your favourite language. Mention specific version. E.g. JAVA 1.8 You should know features of java 1.8 (It will be a plus point)
- JAVA 1.8 features : Lambda Function, Collection foreach method, Streams, Time API, interface can contain default methods.See some examples online.
- Multithreading, Different methods to implement multithreading? When to use which method, Threading Lifecycle
- Synchronize keyword
- Wrapper classes ,Primitive Wrapper Classes are Immutable in Java
- Collections, its hierarchy of classes and interfaces
- HashMap, Hashset,LinkedHashset, TreeSet ArrayList, LinkedList are important
- http://www.benchresources.net/java/collection-framework/ ALL differences are on this site. You should remember at least 3 differences between each pair.
- Search when to you use which collection, It will help you to solve programming questions also.
- Hashset vs Hashmap, Hashmap vs Hashtable, ArrayList vs LinkedList,Treeset vs Hashset
- How to make HashMap Synchronized?
- Immutable class? Why is String Class immutable? How to make immutable class?
- JAVA JDBC Code(Some interviewers asks to write this code snippet)
- https://www.geeksforgeeks.org/biginteger-class-in-java/ Its Imopertant for coding. (If you have to find factorial of large number)
DBMS INTERVIEW QUESTIONS:
- DBMS INTERVIEW QUESTIONS SET 1
- DBMS INTERVIEW QUESTIONS SET 2
- Difference between RDBMS and NOSQL, examples of DBs
- Primary key vs Unique
- Foreign Key, other constrains
- Find 2nd Highest salary of employees
SELECT max(salary) FROM EMPLOYEES WHERE salary IN (SELECT salary FROM EMPLOYEEs MINUS SELECT max(salary) FROM EMPLOYEES);
ORSELECT max(salary) FROM EMPLOYEES WHERE salary <> (SELECT max(salary) FROM EMPLOYEES);
- Why we cannot use WHERE clause with aggregate functions like HAVING ?
- Name the student who has secured third highest marks using sub queries.
SELECT Emp1.Name FROM Employee Emp1 WHERE 2 = (SELECT COUNT(DISTINCT(Emp2.Salary)) FROM Employee Emp2 WHERE Emp2.Salary > Emp1.Salary )
- JOINS, SUB-QUERIES examples
- Database schema of your project
- Index , types why it is used?
- When you will use relational DB and NOSql Db?
I will update remaining questions in some days. Keep Visiting :) .
Not able to read DBMS Queries, please change the text to Black font
ReplyDeleteThanks for the info. CSS updated.
DeletePlease add https://prepare.prepleaf.com in "Sources For Preparation: Aptitude". Its also provides mentors for resume review / interview preparation.
ReplyDeleteYour website is very beautiful or Articles. I love it thank you for sharing for everyone. Smoke Damage Restoration Collingwood
ReplyDelete가평출장샵
ReplyDelete이천출장샵
일산출장샵
파주출장샵
평택출장샵
화성출장샵
의정부출장샵
동해출장샵
출장샵
ReplyDelete출장샵
출장샵
출장샵
출장샵
출장샵