Interview Questions -- Daily updates - 20-01-2018

HCL  20-01-2018

1. If 10000 records , which collection u preferred ArrayList or LinkList
2. In LinkedLIst , if one node break how can u provide security for remaining nodes .
3. String s="java is a programming lang";
result s="aavj si a grogramminp ganl";
4. In word, reverse first char to last char and last char to first char
example:s="pavan" output : navap

MarLabs 19-01-2018
round -1
current project architecture
previous project architecture
singleton class program
At wt scenario , we will go to collections and which one u prefer and why
rest creation
comparsion vs noncomparsion algorthims
wt is container
round -2
display common elements in 2 array list
missed number in array
wt types can we pass to Switch statement
Rest annotations
uses of spring boot

Capgemini 19-01-2018

association,aggreation,composition
interface having constructor?
covarient
method overloading vs overriding
union vs primary key
leftouter join vs right outer join
spring scopes


Lbrands  18-01-2018
1. spring uses
2. why dispatcherservlet introduced in spring
3. difference b/w dispatcherservlet  and HttpServlet
4. stringBuffer vs string builder
5. mapreduce
6. mapper() signature
7. difference b/w mapper and reducer
8. post vs get in rest

Teksystems 18-01-2018

1. why we are using Restful webservices
2. Is it possible , jar inside jar
3. jar vs war
4. wt is the use of war
5. Exception hieracachy
6. static polymorphism vs runtime
7. jdbc vs hibernate
8. hibernate disadvantages

MorganStanely : 17-01-2018

1) find 2nd highest value in arrayList without using collection
 2. find 2nd highest  salary
3. concurrentHashmap vs hashtable, why 2 thread safe implementations
4. internally dependency injection follwing which design pattern and how to relate to IOC
5. comparable and comparator differnce
6. internally hashmap working
7. howmany ways to hashing collision resolovetion ways
8. use of volatile keyword
9. after detached state how object become to persistent state
10. Does JVM create an object of class Main?


The answer is “No”. We have studied that the reason for main() static in Java is to make sure that the main() can be called without any instance. To justify the same, we can see that the following program compiles and runs fine.
// Not Main is abstract
abstract class Main {
    public static void main(String args[])
    {
        System.out.println("Hello");
    }
}
Output:

Hello
11. memory leaks in java
Exilant 17-01-2018
1) written Test
2 . exact difference between encapsulation and abstraction, where u implemented in ur project

3. interface vs abstaraction and realtime example

4. in method overriding , why method name same and why we  need to do override
5. our own exception and show error to customer
6. classloader subsystems
7. dynamic binding class level or interface level
8. use of default method in interface

VMWARE --
1.

Comments