Thread: Answer of HCL and CTS interview

Forum : Job discussions   21-7-2016 12:00:00 AM
User Image
Basanta2041

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 27

Posts: 139

Answer of HCL and CTS interview

| Quote Date : Jul 21, 2016    Views:8811    

Hi Guyzs This is Basant i already post the interview question of CTS and HCL so i prepared some documents . Those who want kindly download from below link . CTS : ==== https://docs.google.com/document/d/1HNodJvRVVMhN6PVFaCiu3k2Tfj5a7SmOxYeAxL0C4FM/edit?usp=sharing HCL : ==== https://drive.google.com/file/d/0B2TPk2qqevR6bjlGenpHSWx3cTQ/view?usp=sharing

tags: java

Comments

User Image
Sabyasachi

Newbie

Joined : Feb 19, 2018

Points : 100

Threads: 0

Posts: 5

Re: Answer of HCL and CTS interview

Reply Date : May 12, 2018

Thanks Bro........

User Image
Rk

Newbie

Joined : Jun 25, 2017

Points : 100

Threads: 0

Posts: 1

Re: Answer of HCL and CTS interview

Reply Date : May 10, 2018

In HCL answer sheet,  your ansewer is 

9 . how many way we can create thread and which one best approach and why

ans:There are 4 way    

1 . extends Thread

2 . implements Runnable

3. implements Cloneable

4 . using AnonymousThread

is thisone is correct?


and 4 . Spring Mvc Flow as per your Project

= = = = = = = = = = = = = = = = = = =

To make webapp

=====================================

1 .First From browser u forward request to servlet (Dispatcher Servlet) to handel it..


2.Dispatcher Servlet here act as a controller. Who only manage the request processing. ..so it

just check once!

We can define a Thread in the following 2 ways.

  1. By extending Thread class.
  2. By implementing Runnable interface.

A Thread can be created by extending Thread class also. But Java allows only one class to extend, it wont allow multiple inheritance. So it is always better to create a thread by implementing Runnable interface. ?





User Image
Gobinda603

Newbie

Joined : Apr 20, 2017

Points : 100

Threads: 0

Posts: 1

Re: Answer of HCL and CTS interview

Reply Date : Dec 25, 2017

Great Job Bro...

User Image
KarthikReddy

Newbie

Joined : Jun 13, 2017

Points : 100

Threads: 25

Posts: 9

Re: Answer of HCL and CTS interview

Reply Date : Dec 3, 2017

Thanks man

Load More

No More Comments