Interview Questions and Answers - Order By Newest Q991. Which s/w is used for adhar card verification for amount transfer?
Ans. The Aadhaar enabled Payment System or AePS Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q992. Isnt the use of HashTable and ConcurrentHashMap the same, i.e providing synchronized map collection ? Core Java
Ans. Both provide the thread safety but the actual difference come when talk about performance. CHM gives best performance when no of writer threads are less in number. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  synchronized collections  hashtable  ConcurrentHashMap Asked in 1 Companies Q993. Write a Program to Find the maximum sum of the sub array ? Data Structure
This question was recently asked at 'Reddit'.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  Maximum subarray variant  arrays  sub array  subarray Asked in 1 Companies This question was recently asked at 'naresh i 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 Ans. 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 cloudwatch Q996. 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 Q997. 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 Q998. 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 Q999. 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 keywordAns. 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 Q1001. Difference between indexing and partioning Database
Ans. Creating an index creates a separate table. ... Indexes are used to speed the search of data within tables. Partitions provide segregation of the data at the hdfs level, creating sub-directories for each partition. Partitioning allows the number of files read and amount of data searched in a query to be limited Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  indexing  partitioning Asked in 3 Companies Q1002. What is XSS or Cross site scripting ? Security
Ans. XSS or cross site scripting is a javascript vulnerability in web applications. The easiest way to explain this is with a case when the user enters a script in the client side input fields and that input gets processed without getting validated. This leads to untrusted data getting saved and executed on the client side. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 3 Companies Q1003. Explain Hibernate caching mechanism Hibernate
Ans. Every fresh session having its own cache memory, Caching is a mechanism for storing the loaded objects into cache memory. The advantage of cache mechanism is, whenever again we want to load the same object from the database then instead of hitting the database once again, it loads from the local cache memory only, so that the no. of round trips between an application and a database server got decreased. It means caching mechanism increases the performance of the application.
In hibernate we have two levels of caching
First Level Cache [ or ] Session Cache
Second Level Cache [ or ] Session Factory Cache [ or ] JVM Level Cache Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 23 Companies Q1004. Does it make sense to mock integration calls during stress / load test ? Testing
Ans. No, its usually not done. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  integration testing  stress testing  mocking  Mockito Q1005. Implement a Stack with 2 threads in which one thread push data and another pop data. Data Structure
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  stack Asked in 1 Companies Q1006. Explain different inheritance mapping strategies with JPA / Hibernate. Hibernate
Ans. table per hierarchy
table per concrete class
table per sub class Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  hibernate mapping  hibernate associations Asked in 4 Companies Q1007. What is elasticity in relation to Cloud infrastructure ? Cloud Computing
Ans. The power to scale computing resources up and down easily with minimal friction Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Amazon Web Service (AWS)  Google Cloud Platform (GCP) Q1008. Pascal Triangle Program
Ans. package snippet;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Pascal {
public static void main(String[] args) {
System.out.println(generatePascalTriangle(5));
}
static Map> generatePascalTriangle(int size) {
Map> triangle = new HashMap<>();
triangle.put(0, Arrays.asList(1));
triangle.put(1, Arrays.asList(1, 1));
for (int i = 2; i <= size; i ) {
List coeffListForI = new ArrayList<>();
List coeffListForI_1 = triangle.get(i - 1);
coeffListForI.add(1);
for (int j = 0; j <= coeffListForI_1.size() - 2; j ) {
coeffListForI.add(coeffListForI_1.get(j) coeffListForI_1.get(j 1));
}
coeffListForI.add(1);
triangle.put(i, coeffListForI);
}
return triangle;
}
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 8 Companies This question was recently asked at 'Unisys'.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 Q1010. Can we serialize objects with only private variables in Java ? Core Java
Ans. It depends on how we are serializing. The Serialization API doesn't worry about private variables and convert it into binary representation.
If we are using a library to map it to JSON / XML using XML Mappers, it may create trouble. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  serialization Q1011. If you have to pull a sub string out of a string, which method would you use - using String methods or Pattern / Matcher ? Design
Ans. It depends on how complex it is and if in future it would need any sort opf debugging. It's not easy to debug code if it's making heavy use of shortcuts like Lambda , Patterns etc. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  pattern matching  String  design Q1012. How did you use Spring in your project ? Which Spring annotations have you used in your project ? Spring
Ans. @RequestMappping Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  spring  spring annotations Asked in 1 Companies Ans. As Edge location only host cached content, Amazon CDN service or CloudFront is provided on these locations. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws edge location  aws cloudfront  amazon cloudfront  aws cdnAns. AWS CloudWatch Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws cloudwatch  amazon cloudwatchAns. If there are regulatory requirements, or proprietary license to be used. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws ec2  aws computing  amazon cloud computing  amazon ec2 dedicated hostAns. Disaster Recovery and availability 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  aws s3  aws storage  amazon cloud storage  amazon s3 cross region replicationAns. RDS, RedShift and Elastic Cache Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws automated backups  aws RDS  aws Redshift  aws backupAns. Through Snapshots Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws ebs  aws volumes  aws computationAns. Route 53 Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS DNS  aws Route 53 Asked in 4 Companies Ans. CloudWatch Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws ec2  aws computing  amazon cloud computing  amazon ec2  aws cloudwatch  amazon cloudwatch