Hexaware Interview Round Question
Hexaware Interview Round Question
-------------------------------------------------------------------------
1.What is difference between Object oriented and object based langugae.
2.Difference between List and set.
3.What is serialization?.
4.Difference between serial garbage collector and parallel garbage collector.
5.How we can write our own immutable class.
6.What all are synchroized objects in collections.
7.Other than string what all are immutable classes.
8.What is autoboxing and autounboxing.
9.What is class loader and how .class will be loaded.
10.What are the various memory areas in JVM.
11.Difference between composition and aggregarion.
12.Java 1.7 features.
13.What is package for these primitive data types and collections.
14.What is marker interface in java and examples.
15.Methods in object class.
16.What are the design patterns used in ur project.
---------------------------------------------------
Cognizant:
-------------
1.Difference between Soap and Rest.
2.Difference between setter injection and constructor injection.
3.What is design pattern why we need design patterns?.
4.Caching mechanism in hibernate?.
5.When does the cache expires in hibernate?.
6.ORM vs JDBC
7.What is dialect in hibernate?.
8.Immutable classes in java.
9.Why we need immutable classes?.
10.Hash code and equals methods.
11.Concurrent Hash Map.
--------------------------------------------------
Cisco:
-----
1.Bean Scope in spring.
2.Single ton and global session.
3.Wait vs Sleep
4.Immutable class
5.Prototype and request.
6.Lazy Loading in hibernate.
7.Cascade attribute in hibernate and what are the values for cascade.
8.
----------------------------------------------------
NIIT
-----
1.About project
2.Web services
3.JDK vs JRE.
4.Jar vs WAR
5.Checked vs unchecked
6.Synchronizaction in thread.
7.Runnable or thread.
8.Auto Boxing and unboxing.
9.java 5 features
Java 6 features
Java 7 features.
10.Design patterns
Ex:Single ton,Front controller,MVC.
11.How to create single ton.
12.What is WSDL file?.
13.Soap Vs Rest?
14.Servlet context vs servlet config.
15.9 implict objects.
16.Actions in struts.
--------------------------------------------
Mphasis:
---------
1.Various states of hibernate.
------------------------------------------------------------------
Infosys:
---------
1.How do you handle Runtime Exception in JSP.
2.What is IOC.
3.Setter injection vs constructor injection.
4.What is WSDL?.
5.What is XML?.
---------------------------------------------------------------------
----------------------------------------------------------------------------
1.What is hashing in java?
2.What is polymorphism in java?.
3.class Test3
{
public void m1()
{
System.out.println(" I am in parent class instance method m1 ");
}
public static void m2()
{
System.out.println(" I am in parent class instance method m2");
}
}
Carlon Technologies:
---------------------
1)how to convert integer to string in java with example?
2)What is polymorphism in java?
3)What is connection pooling?.
4)What is HQL?.
5)What are types of exception in java?
6)What is difference between IOC and dependency injection?
7)What is autowiring?.
8)What is immutable?.
Capgemini:
-----------------
1.What is polymorphism?
2.class Test
{
public int m1()
{
System.out.println("Exception");
return 10;
}
public int m1(int x)
{
System.out.println("Exception");
return 10;
}
3.What is exception and how many types of exceptions are availble?
4.if we insert null in hash map as key and while retriving will it give any Run
time error?
SLK software:
------------------
1.What is composition and aggregation?
2.What is the super class of java?
3.Internal implemenation of hashmap?
4.What will happen if there is collision in values of map?
5.What is static key word in java?
6.What are JSP implict objects?
7.Spring MVC flow
8.How can configure spring in web.xml?
9.What is dependency injection?
10.How can you create your own immutable class?.
11.Scopes of spring?
12.Is the class needs to be singleton?.
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------
Spring:
-------
1.What is DI?
2.What are the scopes?.
3.Difference between request and prototype?.
4.Difference between singleton and prototype?.
5.How can you configure multiple properties file?.
6.What is autowiring?.
7.What will happen if i make @autowired as false?
8.What is application context?.
9.What is Advice?
10.How do you write a programm for AOP?.
Webservices:
--------------
1.Difference between soap and rest?.
2.How can you declare different response types in REST?.
3.How we can implement security in webservices?.
4.What implementations did you use for soap?
Vodafone:
----------
1.How can you integrate Spring and hibernate?.
2.How hashmap works?.
3.What is difference between get and load?.
4.How can you implement transactions?.
Core Java
=========
1-> input String Array ["abc","tkd","bca","fgd","cab","dfg","aabc"]
write a method to print output like below
["abc","bca","cab"]
["tkd"]
["fgd","dfg"]
["aabc"]
In the above output you can see each array contains the word which has exact
same letters and also same no of letter. i.e "abc" can become "bca"
2-> Hash TreeSet works. Can we add different type of object to TreeSet(i.e
Integer,String,Float)
8-> Can you write the interface of Predicate whatever is given by Java.
10->Can you explain the different parts of JVM memory. And how the memory
managements works in JVM.
12-> How to monitor your JVM and findout DeadLock in application and findout if
there is any memory leak.
remove the duplicate values from map and print the kay,value in sorted order
of values like 2-> Abhisek, 3->Rakesh, 1->Tarun
14-> given a array of data. Use Stream, filter the data,collect the data to map
15-> How many ways we can create Thread. What will happen if we call run()
directly. Ho to make thread Deamon
19-> You have a class "Demo" where you have overriden hasCode() and equals()
method. where hasCode() returns 1 every time and equals() return false every time.
Set<Demo> a= new HashSet<>();
for(int i=0;i<100;i++ ){
a.add(new Demo());
}
2-> What is the differences between Spring MVC and Spring Boot
4-> what is Eureka Server. How it works. How you make a Eureka Server
6-> How to interact two microservice. What is the best way to do.
8-> If you are using Feign Client to inter communicate between two microservice.
How you handle Exception in Feign. How you write Custom Error Decoder
9-> How to make you configurations Centralised. How to Encrypt some of your
properties.
10-> What is the use Spring Actuator. what are the endpoints it exposed. what are
response parameter for endpoint (/health)
11-> How You make your application High Available in case of Microservice.
12-> What are the log monitoring tools you are using in Production. And how do you
find a perticular error.
13-> Which type of Authentication and Authorization you are using in you
application.
16-> How Spring Transaction works. What the Isolation and Propagation Levels
17-> Do you know how Proxy Design Pattern works in Spring. Can you tell for which
scenarios Proxy Pattern is implimented in spring.
Rest
=====
1-> Why to use Rest Service.
Docker
=====
3-> How you are using docker with spring boot application
NoSql
=====
Design Patterns
=============
1-> Which type of Design pattern you used
Others
======
1->Full Project Architecture
2-> Angular Js
@Component
@Injectable
what is observable.
How to handle events
How modularization works in Angular
What is two way binding.
Why Angular Team rewriting there Library frequently
SQL
===
Flipkart
product_id|price
1 | 123
2 | 345
Amozon
product_id|price
2 |45
1 |1222
In Both table product id are same. Write a query to print product_id and
minimum price of both table