Interview Questions and Answers - Order By Newest This question was recently asked at 'American International Group (AIG)'.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  applet Asked in 1 Companies basic   rare Ans. On demand instance is normal instance means if you create first time so you can use on demand instance, in this instance you can create simple server like 2 gb RAM, 1 core CPU, GP2 30 GB SSD....etc.
and Reserved instance is you can create server and its reserved for 2-3 years and when you give back to this server on AWS they give you discount but on demand and reserved instance price are same. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Ec2Ans. EC2 is elastics compute cloud is one of the amazon service and ec2 instance is one type of virtual server which you create from AMI. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  amazon ec2  aws ec2  aws computing  amazon cloud computing  amazon ec2 Q1984. 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) 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  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 ec2Ans. 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. 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. 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  DynamoDB Q1990. 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 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 Q1992. 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 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 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 Q1995. 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 Q1996. 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 Q1997. 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 Q1998. If you are given a Jar file , How can you go through it understand what it does
Ans. It depends on if the jar file has source files or not. If it does have , I can open it in an IDE. If not, I can try looking documentation online if it's a public library or framework. If it's not a public library and no source file available, We can use a decompiler to generate source files from compiled class files. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  jar Q1999. 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 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 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 Ans. 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. 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. 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 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. 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 Q2007. 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 Q2008. 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 Q2009. How is RDBMS different from DBMS ? Database
This question was recently asked at 'LumenData'.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  database  rdbms  dbms  dbms vs rdbms Asked in 1 Companies basic Q2010. How can we make objects if the constructor is private ? Core Java
This question was recently asked at 'Nagravision'.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  constructor Asked in 1 Companies