Interview Questions and Answers - Order By Newest Q1781. What is the difference between Java and J2ee ? Java EE
This question was recently asked at 'Sunovaa Tech'.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  java vs j2ee  java  j2ee Asked in 1 Companies Q1782. What is difference between clustered and non clustered index? Database
Ans. The clustered index determines how the data is stored in the rows of a table.The non-clustered index stores the data at a single place and the indexes are stored at another place. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  clustered vs non clustered index  index  database index Asked in 1 Companies Ans. list.get(index); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  list Asked in 1 Companies Q1784. What is Left Outer Join ? Database
Ans. It returns all the rows form the left table and matches the rows in both tables. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  database   database joins   left outer join  sql Asked in 2 Companies Q1785. How one dao Implementation object (singleton) can handle multiple requests? Design Pattern
This question was recently asked at 'Capgemini'.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  singleton Asked in 1 Companies Ans. It is a file format based on the popular ZIP file format and is used for aggregating many files into one. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  jar Asked in 1 Companies basic 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. 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 Q1789. 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 Q1790. 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 Q1791. 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. 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 Q1794. 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 Q1796. 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 Q1799. 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 Q1800. 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 Q1801. 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 Q1802. 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 Q1804. Difference between emulator and simulator. Testing
This question was recently asked at 'Hughes Systique'.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. 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 GatewayAns. 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 Q1810. 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