[go: up one dir, main page]

0% found this document useful (0 votes)
41 views4 pages

Ques

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views4 pages

Ques

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

how can you call a store procedure within a stored procedure?

How does Garbage Collection prevent a Java application from going out of memory?
out of memory
how to make a class immutable
How to design a vending machine in Java?
How does calculator work?
Which is more efficient for searching, linked list or array
Code to find a missing number in an array
Code to find a repeated number in an array

API Rate Limiter? -- limit the no of requests


How to design Facebook’s Newsfeed? What kind of algorithm will you use?

Haven't you seen concurrent modification exception ever?


How to get the second highest salary from the table?

collections, hashmap
design pattern
String immutable how do you create immutabl
hashcode
static and non static
concurrent hashmap vs
singleton vs immutable
Spring

sql
Deadlock
write code to find the First non repeated character in the String
write a Java Program to swap two numbers without using the third variable.
Stored procedure

object oriented programming


stack vs heap memory
String
Constructor
final
try, catch, exception
jdk, jre, jvm
static
String --

new
Duplicate characters in string

1-10
second largest number
Swap number
hashcode
Encapsulation

You have a 5-litre jug and a 3-litre jug.


That’s great, but how would you measure out exactly 4 litres without using any
other equipment?

Remove duplicate character from string


swap two numbers
Reverse a string
collections
1. project architecture
2. Why char array is preferred to store password than String in Java?
3. What happens if your Serializable class contains a member which is not
serializable? How do you fix it?
4. Can you do GC tuning?
5. What is a ConcurrentHashMap ?
6. Replacing “public’ with ‘private’ in “main” in Java
7. Difference between x++ and x=x+1
8. Dependency Injection
9. input string is “ApPLe”, the output should be “aPplE”.
10. Java to count the total number of vowels
11. prove that the strings are immutable
12. Java to Reverse an Array
13. Anagrams are those strings that have the same characters occurring an equal
number of times in both the strings.
However, the order can be different. For example “anagram” and “nagrama” are
Anagrams. (silent, listen) (reed, deer)
14. calculator, vending machine, traffic control system, Parking Lot system
If you are given a choice to implement something using javascript or Java ? Which
technology will you use and why ?

------------------------------------
For a Core Java Developer , Questions around following topics should be good.

OOPs Concepts
Abstract Classes and Interfaces
Constructors
Overloading and Overriding
File IO and Serialization
Collections - List , Map , Set - Search, Sorting Algorithms
Access Specifiers
Exceptions - Checked , Unchecked
Generics
Java Keywords - static , final , volatile, synchronized , transient, this , super
etc.
JVM and Memory Management
MultiThreading and Synchronization
HashCode and Equals
Design Patterns
Dependency Injection
Reflection API
Java 8 features - Lambda Expressions , Default Methods.

If Someone is being hired for a Network / Distributed Application, Following


questions can be asked

Communication Protocols like IP, HTTP, TCP, FTP,UDP


Synchronous vs Asynchronus Communication
Sockets
Technologies like RMI, RCP
Message Queues
Interface APIs - JMS, JDBC
ORMs - EJB ( Session Beans , Entity beans, MDB's ), Hibernate

If someone has to work on a Java based web application then he can be asked
questions around following topics -

JSP / JSF
Servlets / filters / Interceptors
Session Management / Transaction Management
JNDI
Architectures - n Tier, MVC
Web Frameworks like Struts / Spring
Service Oriented Architecture / Web Services - SOAP / Rest
Web Technologies like HTML, CSS, Javascript and JQuery
Markup Languages like XML and JSON.
Application and Web Servers
Caching
Cloud service (AWS, SoftLayer, BlueMix)

If someone has to work on Java UI, then questions around following can be expected
-

Applets
Frameworks like Swing, SWT, AWT
Advanced Frameworks like JavaFX

Every Developer is expected to have knowledge regarding the Data structures. If you
are applying positions for a product / system development companies, lot stress
will be given to these Questions.

Arrays , Linked List


Search Algorithm and their complexity
Sorting Algorithms and their complexity
Trees , Graphs

Every Java Developer is expected to have Database Knowledge so questions around


following concepts can be asked
Database Drivers
Normalization / Denormalization
Isolation Levels
Transaction Management
SQL Tuning / Optimization
SQL Queries - Inner Outer Joins, Group By , Having
Prepared Statement and their benefit.
Indices , Views
Stored Procedures
Triggers
Cursors

Moreover questions around Tools, Methodologies, Processes can be asked -


Development Tools - Eclipse / RAD
Design Tools and Diagrams
Configuration Management Tools like SVN, Clearcase etc
Defect Management
Build Tools like Maven, Ant etc
Testing - Unit Testing, JUnit , Black box , White Box
Development Methodologies - Agile / Waterfall / Iterative
Requirement Analysis
Release Management
and then Interviewer can also ask open ended questions.
Which feature would you most like to see added to Java?
Which feature would you most like to be removed from Java?
Have you gone through some of the features introduced with latest Java version ?
Do you think removing Perm gen completely in Java 8 is a good idea ?
How would you go about debugging an exception ?
How does Java differ from other programming languages you've worked with?
How do you document your code ?
If you are given a choice to implement something using javascript or Java ? Which
technology will you use and why ?
What Design Patterns you have used in your project ?
Which Web application Framework - Struts, Spring do you like and Why ?
Which IDE, Source Control,Build tool you think is best ?
Which development methodology you would like to work with ?
Do you think using open source servers like Apache , Tomcat is a better idea than
paid servers ?
Which testing tools do you use ?
What are the most important performance issues in Java web applications
What are the most important technologies / specifications in Java EE 6?
Do you like pair programming ? What's your views on Agile methodology comparing to
SDLC ?

1. what feature you like to get added


2. to be removed
3. mucro service
4. oauth authentication open authorization protocol
monolithic architecture vs SOA vs microservice

Semantic monitoring,
implement a Spring Security in a Spring Boot Application?

calculator, parking lot,


API Rate Limiter.

-----------------------------------------------------------------------------------
------------------------------------------------------------
## Prodapt Interview Questions.

1. Difference between Session and Session Factory?


2. Atowire and classpath variable
3. create emp and print , separated name of employee having age greater than 25.
4. Collections vs Collection
5. Java 8 features

You might also like