Thread: Answer of HCL and CTS interview

Forum : Job discussions   21 Jul, 2016 04:00
User Image
Basanta2041

Newbie

Joined: 20 Apr, 2017

Points: 100

Threads: 27

Posts: 139

Answer of HCL and CTS interview

| Quote Date : 21 Jul, 2016    Views:10577    

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 : 19 Feb, 2018

Points : 100

Threads: 0

Posts: 5

Re: Answer of HCL and CTS interview

Reply Date : 12 May, 2018

Thanks Bro........

User Image
Rk

Newbie

Joined : 25 Jun, 2017

Points : 100

Threads: 0

Posts: 1

Re: Answer of HCL and CTS interview

Reply Date : 11 May, 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 : 20 Apr, 2017

Points : 100

Threads: 0

Posts: 1

Re: Answer of HCL and CTS interview

Reply Date : 25 Dec, 2017

Great Job Bro...

User Image
KarthikReddy

Newbie

Joined : 13 Jun, 2017

Points : 110

Threads: 25

Posts: 9

Re: Answer of HCL and CTS interview

Reply Date : 3 Dec, 2017

Thanks man

Load More

No More Comments