Interview Questions and Answers - Order By Newest Ans. Spring is a Framework where we have to Build the Configurations Manually but Springboot have default configurations that allow faster bootstrapping. Spring Framework requires a number of dependencies to create a web app. Spring Boot, on the other hand, can get an application working with just one dependency. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  spring boot Asked in 1 Companies Q2412. What are the mutable and immutable data types ?
This question was recently asked at 'Technicolor,Velotio'.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 2 Companies Q2413. What are the different types of inheritance ? Core Java
Ans. Single Level
Multi Level
Hierarchical
Multiple
Hybrid Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2414. Is there a way to access a private method from an outside class ? Core Java
Ans. Through Reflection. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2415. Difference between class and object with example. Core Java
This question was recently asked at 'TalenPace'.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 Q2416. What if we use all access specifiers ? Is it encapsulation ? Core Java
This question was recently asked at '3 Embeded Software 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 Q2417. What is stress testing ? Testing
Ans. Stress testing is a software testing activity that determines the robustness of software by testing beyond the limits of normal operation. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2418. Find the second largest array element without sorting? Design
Ans. We initialize two variables first and second to INT_MIN as,
first = second = INT_MIN
then Start traversing the array,
If the current element in array say arr[i] is greater
than first. Then update first and second as,
second = first
first = arr[i]
If the current element is in between first and second,
then update second to store the value of current variable as
second = arr[i]
then Return the value stored in second. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. An application layer is an abstraction layer that specifies the shared communications protocols and interface methods used by hosts in a communications network. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2420. How would you handle clustering on multiple servers? Server
This question was recently asked at 'Sifi'.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  production support Asked in 1 Companies Q2421. How do you ftp files to a different server ? Do you use scp or mput etc. Unix
Ans. I use both mput as well as scp. mput usually with sftp Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  unix commands  ftp Q2422. Can you share your experience with encoding and encryption ? Encoding
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  encoding  encryption Q2423. Why Spring boot is preferred over Spring MVC ?
Ans. Spring Boot aims to shorten the code length and provide you with the easiest way to develop a web application. It helps create a stand-alone application with less or almost zero-configuration. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Ans. Message queues implement an asynchronous communication pattern between two or more processes/threads whereby the sending and receiving party do not need to interact with the message queue at the same time. Messages placed onto the queue are stored until the recipient retrieves them. Message queues have implicit or explicit limits on the size of data that may be transmitted in a single message and the number of messages that may remain outstanding on the queue. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  message queue Asked in 1 Companies Q2425. what annotation do in background in hibernate ? Hibernate
This question was recently asked at 'Cdac Pune'.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 Q2426. How many objects are created when we define a bean with two different name in spring? Spring
Ans. we wont create the objects because of each and every bean will be an object Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2427. What is the logic behind the shuffle in Music player ?
or
Explain Music player shuffle algorithm. Algorithm
This question was recently asked at 'ASG Sweden'.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 Q2428. Explain unix commands - cat and pwd. Unix
Ans. by using Cat command we can open and see the file content and as well as redirect the file content to another files
pwd command shows us current working path of the server
cat filename | tail -100
cat file name > filname1 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q2429. What is Spring Security in Detail ?
This question was recently asked at '3i Infotech'.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 Q2430. Explain Rest architecture Rest
This question was recently asked at 'Motorola Solutions,DXC Technology'.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 2 Companies Q2431. Can we override behavior of a collection class ? How ? Core Java
Ans. Yes. We can do that.
1. We can create own own implementation class extending the collection class and then override the behavior method.
2. We can override the behavior at the time of instantiation of class as following
List<MyType> list = new ArrayList<MyType>() {
public boolean add(MyType mt) {
super.add(mt);
Collections.sort(list, comparator);
return true;
}
}; Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  collections This question was recently asked at 'Fujitsu'.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 Q2433. What is the time complexity and space complexity of reversing a Linked List ? Data Structure
Ans. o(n) for time complexity
o(1) for space complexity Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q2434. Write an algorithm to shift a linked list n positions. Data Structure
This question was recently asked at 'Amdocs'.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 Q2435. What are FPGA's ?
This question was recently asked at 'Intel'.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 This question was recently asked at 'Barclays'.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  Google Cloud Platform (GCP)  Amazon Web Services (AWS) Asked in 1 Companies Q2437. What would you do if your rest services aren't responding fast enough ? Rest
This question was recently asked at 'Symantec,Barclays'.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 2 Companies Q2438. If you see a terrible code, Would you rewrite it. If yes , Why ?
This question was recently asked at 'McLead 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 Q2439. If you are given a stack trace , what would you look for ?
This question was recently asked at 'Mcleod 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 Q2440. What are the ways we can get over XSS or cross site scripting vulnerability ? Security
Ans. The counter measures of XSS are input validation and implementing a CSP (Content Security Policy). Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Cross Site Scripting  XSS Asked in 1 Companies