Interview Questions and Answers - Order By Rating Q121. Write a Program to draw a fish ? Core Java
This question was recently asked at 'Webkul Software'.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 Q122. Should we do anything to avoid memory leaks in Java ? Core Java
Ans. Java has a intrinsic way of checking leaks and reclaiming memory called garbage collection. Moreover Java doesn't support pointer arithmetics , so there is very low comparative chance of memory leaks, compared to C,C++
Though there may be tools that may audit code to make sure that we are not leaving much for the garbage collection to work but I have never heard anyone doing anything for memory leaks in Java. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  memory leak in 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   Q124. differences between drop , delete and truncate Database
This question was recently asked at 'HCL 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 Q125. How to deploy spring boot application without restart in prod env Spring Boot
This question was recently asked at 'HCL 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 Q126. Hash map using/without using Java 8 Core Java
This question was recently asked at 'HCL 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 Q127. Rest API crud operation using spring boot Spring Boot
This question was recently asked at 'HCL 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 Q128. What is difference between Echo and Print ?
Ans. echo and print statements both are similar there is a slight difference between those both are output statements echo has no return value while print has value 1 echo takes multiple parameters but print takes one argument Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q129. How do you use cut command in unix ? Unix
Ans. cut command is used to extract the given number of characters and columns from a file Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. Throwable in java is a class that is the superclass of all exceptions and errors which may occurs in java program.It extends obcect class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  exception handling   throwable Asked in 1 Companies basic Q131. How to delete a node from linked list if u do not have head and only have a pointer to the element which has to be removed ? Data Structure
This question was recently asked at 'LifCare'.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 Q132. What are the scenarios you consider in code reviews General
Ans. https://www.evoketechnologies.com/blog/code-review-checklist-perform-effective-code-reviews/ Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  clean code Asked in 1 Companies Q133. All the meaningful words that can be formed from a phone keypad
This question was recently asked at 'Oracle'.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 Q134. What is the use of toString method ? Core Java
This question was recently asked at 'Jibe Technology Services'.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 Q135. What is ado.net ? C#
This question was recently asked at 'jibe development services'.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 Q136. What is a composite primary key and foreign key ? Database
Ans. The combination of values from multiple columns in the composite primary key must be unique for each row in the table.
A foreign key, on the other hand, is a field or set of fields in one table that refers to the primary key in another table. It establishes a relationship between two tables based on the values of the foreign key and the primary key. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q137. What is java machine control
This question was recently asked at 'HSBC Technology India'.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 Q138. what is green threads
This question was recently asked at 'HSBC Technology India'.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 Q139. what is dynamic method dispatch
This question was recently asked at 'HSBC Technology India'.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 Ans. SNMP or Simple Network Management protocol is an application layer protocol for exchanging management information between network devices.
Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 15 Companies Q141. If you are given choice to either load object eagerly or lazily , which one would you use in case of singleton pattern ? Design
Ans. I would choose Eager as the cost for 1 additional object is too minute for any such consideration.
Eager Loading results in Faster access ( Object available at load time) at the cost of additional space.
Lazy loading results in space saving ( Object available at first use ) at the cost of access speed. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  design Pattern  Singleton  Lazy vs Eager Loading Q142. What can be done to protect the application from DDOS attack ? Security
Ans. We can set the max number of requests from a given IP or an IP range
We can set the time out so that a single request cannot hold on to resources for too long.
We can identify patterns ( like too many requests from single IP for single page ) and then block such requests. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  DDOS  security vulnerability Q143. how to switch to the parent webpage?
This question was recently asked at 'Walmart'.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 Q144. What is the programming language used to build Jenkins? Jenkins
Ans. There is a diverse set of programming languages used in Jenkins, including but not limited to: Java, JavaScript, Groovy, Golang, Ruby, Shell scripts Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q145. Difference between merge and update in hibernate Hibernate
This question was recently asked at 'Nucleus Software'.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 Q146. Explain switch and router
This question was recently asked at 'Reliance Jio'.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 Ans. Private, Public, Hybrid, Community Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Google Cloud Platform (GCP) Asked in 1 Companies Q148. What is headless mode in Java ? Why is it used ? Core Java
Ans. It’s a mode that can be used for creating Back end application without the front end UI.
The advantage is that it reduces the number of packages that needs to be loaded ( by ignoring ui packages ) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java headless Q149. Write a code to detect the longest palindromic substring Core Java
This question was recently asked at 'Google'.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 Q150. Write a program to make a triangle of stars.
This question was recently asked at 'Oracle'.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