Interview Questions and Answers - Order By Newest Q2131. Difference between interface and class in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2132. Why type has been deprecated and replaced by interfaces ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2133. Can we set specific return type of a method in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2134. What is the use of map method in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2135. What is type script ? What are the advantages of typescript ? How is it different than javascript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Typescript vs Javascript Q2136. What are the features of TypeScript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2138. Can we compile multiple type script files together ? How ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2139. Difference between constructor and NGInit ? Angular Js
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  nginit Q2140. Difference between git init and git clone ? Git
Ans. "git init" creates an empty repository or can make an existing directory a git repository while "git clone" first internally calls "git init" to create an empty git repository and then copy the data from the specified remote repository. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  git init   git clone   git init vs git clone basic Q2141. difference between git add , git commit and git push ?
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  git Q2142. What is the purpose of rebasing the branch Git
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  rebasing branch in git  git  rebasing  rebase a branch Q2143. Difference between git fetch and git pull ? Git
Ans. git pull does a git fetch followed by a git merge. git fetch only change the remote tracking but never attempts to make changes to the local. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  git fetch vs git pull  git fetch  git pull Asked in 1 Companies This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws s3  aws storage  amazon cloud storage  amazon s3Ans. We can get the object and then can set CannedAcl property as "PublicRead" Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws s3  aws storage  amazon cloud storage  amazon s3 Q2146. Have you ever heard of the term "dry run" ? What does it mean ? Testing
Ans. It means that the run is just for testing purpose. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  dry runAns. We can schedule that through CloudWatch. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  lambda function  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda function  aws cloudwatch  amazon cloudwatchAns. Yes I did it for an execution role of a Lambda function to give it write access on S3 bucket. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws security  aws iam  amazon iam Q2149. How you can check Object is created or not in case of Singleton using Object class method ? Design
Ans. Reflections-- setAccesible--avoid using enumns Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2150. What is the difference between try-catch and @ExceptionHandler in Java/Spring Boot? Spring Boot
Ans. ExceptionHandler is Used to handle at Method level Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  @ExceptionHandlerAns. DDOS is denial of service attack in which the hacker seeks to make a machine or resource unavailable to its expected users by disrupting services. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ddos  cyber security Q2152. Explain hibernate associations. Hibernate
This question was recently asked at 'Ray Business Technologies'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2153. Have you ever used PowerMock ? If yes , which mocking framework you have used it with ? PowerMock
Ans. Yes, I have used PowerMockito with Mockito. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Mockito Q2154. How can you verify if there were interactions with a static method using PowerMock ? PowerMock
Ans. We can use PowerMockito.verifyStatic for this purpose
PowerMockito.verifyStatic(VerificationModeFactory.times(1));
<Class_Name>.<static_method_name>; Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mocking static methods Q2155. What does the following code
MockitoAnnotations.initMocks(this); Mockito
Ans. Initializes objects annotated with Mockito annotations Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  mocking  java mocking frameworks  Mockito Q2156. What is doCallRealMethod() method used for ? PowerMock
Ans. When we Mock an object and then make a reference to any method using mocked object reference , java never makes a call to that method and looks for mocked value to be returned or null if none specified. But If we want that to be overridden and want java to make actual method call upon using mocked object reference, this method can be used. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  junit  mocking  java unit testing  Mockito Q2157. What is @EnableSptringMVC ? Spring
This question was recently asked at 'Tata Consultancy (TCS)'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2158. What is the Main Advantage of the native Key Word? Core Java
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  native keyword This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  strictfpAns. Work with two pointers on the linked list - a slow pointer (increments by one node) and a fast pointer (increments by two nodes). If both of these pointers meet at the same node, then there is a cycle in the linked list. Otherwise, no cycle. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  linkedlist Asked in 1 Companies