Interview Questions and Answers - Order By Rating Q1081. What are the characteristics of the object ? Core Java
Ans. 1. State
Instance variable or member elements forms the object state.
2. Behavior
Member functions forms the object behavior
3. Identity
Every object has a unique identity within JVM through a unique Id. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  oops  oops concepts Q1082. Can we modify a list while iterating it ? Core Java
Ans. No,we cannot.I t will give concurrentModificationExceptin error. It can be resolved by using ConcurrentClasses like ConcurrentHashMap,CopyOnWriteArrayList,BlockingQueue etc which are fail-safe and wont give exception. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  collections  list  iterator Asked in 1 Companies basic Ans. You can have reserved capacity with AWS Lambda. This guarantees that this number of concurrent Lambdas are always available for that function. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda  aws ec2  aws computing  amazon cloud computing  amazon ec2 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  AWS Lambda  AWS EC2Ans. We have to complement it to AWS Gateway API. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Lambda  AWS Serverless  AWS Gateway Q1086. Can you explain the integration between API Gateway and Lambda if we wish to develop services using these tools. Amazon Web Services (AWS)
Ans. We can create API gateway and give the name of lambda function in order to be linked with lambda function, deploy the API and whenever request will be made from API it will directly be linked to lambda function to perform further process. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws api gateway  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Q1087. What are the problems one could face while working with serverless technologies like AWS Lambda ? Amazon Web Services (AWS)
Ans. Warm up time for certain technologies like Java ( JVM Warmup )
Performance
Size of Deployable ( Bigger size packaging should go in S3 ) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  serverless technologies  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Asked in 1 Companies Ans. AWS API Gateway is the endpoint URI to get invoke. Whereas Lambda is the compute function being invoked from API Gateway or S3 or SNS Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Lambda  AWS Gateway APIAns. The process of hiding the implementation details from the user and providing only functionality. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies basic   frequent Ans. Overriding refers to the Methods with same name and parameters, such that the later over rides the former method. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  oops  oops concepts  overriding Asked in 1 Companies basic   frequent This question was recently asked at 'adobe'.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  vector  collections  list Asked in 1 Companies Q1092. How do you define a functional interface? Core Java
Ans. Create interface with the only one non-overriding abstract method and annotate it with @FunctionalInterface Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  functional interface  java 8 Asked in 1 Companies Q1093. Can you give a real life example of synchronization Core Java
Ans. Intersection with traffic light Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  synchronization Q1094. In the Following code which foo will get called.
foo(Integer i){
}
foo(String s){
}
public static void main(){
passing foo(null);
} Core Java
Ans. ambiguity error Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  code  method  function  data types Asked in 1 Companies Q1095. Find different combination of given String and trace the output
Core Java
Ans. private void permutation(String prefix, String sufix)
{
int ln = sufix.length();
if(ln == 0) {
System.out.println(prefix);
} else {
IntStream.range(0, ln).forEach(i->permutation(prefix sufix.charAt(i), sufix.substring(0,i) sufix.substring(i 1, ln)));
}
}
call:permutation("", "abcdef"); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  String  code  coding Asked in 1 Companies Q1096. Find Max from Stack in O(1) complexity Algorithm
Ans. Create one extra field called MAX O(1)
when you an element to the stack check these two condition
1. Stack is empty, then MAX = element
2. Stack is not empty then check if the element is greater than MAX then MAX = element
when getMax fuction is called, then return MAX Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  complexity  stack  data structure Asked in 1 Companies This question was recently asked at 'MST Solutions'.This question is still unanswered. Can you please provide an answer. Sample Code for composition Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  composition  object oriented programming (oops)  oops concepts  oops concepts Asked in 1 Companies basic   frequent Ans. The interface is a mechanism to achieve abstraction. Interfaces can have abstract methods and variables. It cannot have a method body. Sample Code for interface Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interface Asked in 1 Companies basic   frequent Q1099. Explain Facade design pattern Design
Ans. Single gateway of the entire application is called Facade Design Pattern. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  design pattern  facade Asked in 1 Companies This question was recently asked at 'Adella 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  debug Asked in 1 Companies basic Q1101. What is the purpose of JDP and JDK ? Core Java
This question was recently asked at 'Dextrasys'.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  jdp  jdk Asked in 1 Companies Ans. Amazon RDS provides relational database services whereas DynamoDb provide No SQL database services. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS RDS  Amazon RDS  AWS DynamoDB  DynamoDBAns. Storage - S3, Glacier
Database - RDS, DynamoDB Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Ans. AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of Amazon Web Services. It is a computing service that runs code in response to events and automatically manages the computing resources required by that code. It was introduced in November 2014. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  amazon lambda  aws  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Asked in 1 Companies Ans. EC2, EKS, EKC , Lambda 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 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   Q1107. How cloud computing is different than virtualization ? Server
Ans. A Virtualization is software that virtualizes your hardware into multiple machines while Cloud computing is the combination of multiple hardware devices. In Virtualization, a user gets dedicated hardware while in Cloud computing multiple hardware devices provide one login environment for the user. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  cloud computing  virtualization  production support  Google Cloud Platform (GCP) Ans. AWS provides various types of services like Computing ( EC2 , Lambda , EKS ), Storage ( S3, Glacier ), Database ( RDS , DynamoDB ), Streaming ( Kinesis ), Queue ( SQS ), Security and Access ( IAM ) etc. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q1109. What are some of the vendors providing cloud computing infrastructure ? Server
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  cloud computing Q1110. What are the benefits of cloud computing ? Server
Ans. Primary benefits of cloud computing include –
Data backup and storage
Reduced costs of managing and maintaining IT systems
Powerful server capability and scalability
Better productivity and collaboration efficiency
Access to automatic updates Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  production support