Interview Questions and Answers for 'C' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   next 30
 Q2641. How do you mock private methods using Mockito ?Mockito
Ans. We just declare the methods as protected and mark them with the annotation @visibleForTesting

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q2642. Have you ever worked on Google Cloud Platform ?Google Cloud Platform
 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     


 Q2643. Have you ever worked on migration from enterprise network infrastruscture to Cloud Infrastructure ? What problems did you face ?Infrastructure
 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     


 Q2644. Can we assign the reference to this variable ?Core Java
Ans. No

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q2645. What are different types of Polymorphism in Java ?Core Java
Ans. run time polymorphism
compile time polymorphism

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q2646. Is String mutable or immutable in Java ?Core Java
Ans. String is Immutable because of String Constant Pool.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q2647. Explain Collections in JavaCore Java
 This question was recently asked at 'Whitesnow 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


 Q2648. Should we do anything to avoid memory leaks in Java ?Core Java
Ans. Java has a intrinsic way of checking leaks and reclaiming memory called garbage collection. Moreover Java doesn't support pointer arithmetics , so there is very low comparative chance of memory leaks, compared to C,C++

Though there may be tools that may audit code to make sure that we are not leaving much for the garbage collection to work but I have never heard anyone doing anything for memory leaks in Java.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     memory leak in java


 Q2649. Write a Program to draw a fish ?Core Java
 This question was recently asked at 'Webkul 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


 Q2650. How can we create custom AMI ?Amazon Web Service (AWS)
 This question was recently asked at 'Cognizant (CTS), Advanced Micro Instruments'.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 ami     Asked in 2 Companies


 Q2651. What is the maximum limit of domain supported by Route 53 ?Amazon Web Service (AWS)
 This question was recently asked at 'IBM'.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 route 53     Asked in 1 Companies


 Q2652. Can you explain integration between Spring and Hibernate ?Hibernate
 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     Spring framework  Hibernate Orm     Asked in 1 Companies


 Q2653. Explain Virtual machines in Google Cloud Platform.Google Cloud Platform (GCP)
Ans. Virtual machines are IAAS in GCP which can called Compute Engine

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Google cloud Platform  GCP


 Q2654. Explain Identity management in GCP ?Google Cloud Platform (GCP)
Ans. IAM is used to define the level of access to GCP services

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     GCP


 Q2655. What is the difference between inheritance in PHP vs. Javascript?JavaScript
 This question was recently asked at 'WePay'.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     php  javascript     Asked in 1 Companies


 Q2656. Write a method to track every click on a page.JavaScript
 This question was recently asked at 'LinkedIn'.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


 Q2657. Have you had to work with memory leak problems in javascript ?JavaScript
 This question was recently asked at 'RockYou'.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


 Q2658. Create a component and sort the data to show specific information.React JS
 This question was recently asked at 'Egen Solutions'.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


 Q2659. prototypal inheritance in JavascriptJavaScript
 This question was recently asked at 'RocketMiles'.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


 Q2660. CSS Box ModelCSS
 This question was recently asked at 'RocketMiles'.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


 Q2661. Develop an address form in React js.React JS
 This question was recently asked at 'PayPal'.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


 Q2662. What is the use of defining equals , compareTo and hashcode methods in a class ? Where are they used ?Core Java
Ans. equals, compareTo and hashcode are of use when the objects are used within collections.

Equals helps with collections that helps maintaining only unique objects ( like Set )

compare and compareTo helps with collections that helps maintaining objects in order ( TreeSet, TreeMap etc )

hascode helps with collections that facilitates hash searching ( like hashSet, hashMap etc )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     equals    compareTo   hashcode method


 Q2663. Can we pass the junit test if the tested method throws the exception ? and Should we do that ?Junit
Ans. Yes, We can pass the test even if the tested method throws an exception.

One way is know as exception testing in which the tested method is expected to throw exception and hence the expectation is set accordingly.

@Test(expected = IndexOutOfBoundsException.class)
public void test(){}

Other way is to just ignore if the tested code throws an exception. In that case , we can enclose the tested method call in the try block and within exception block, we just return gracefully.

Exception testing is perfectly ok to be done as we would like test code in case an exception occurs and if the code is handling the exception properly. Ignoring the exception by putting the tested method call within try block isn't something normal and should be avoided.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Junit exception testing


 Q2664. How does cloud computing helps saves cost ?Cloud Computing
Ans. Cloud computing helps saving overall cost for infrastructure and service usage through following -

1. On demand Services and elasticity - You only pay for what you use. Less Ideal time.

2. Resource Pooling

3. Self Service - Less involvement of human resources

 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 Service (AWS


 Q2665. What is the difference between Co Location, Virtualization and Serverless ? Infrastructure
 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     


 Q2666. Which category of service , Amazon EC2 and S3 belongs to ?Amazon Web Services (AWS)
Ans. They are IAAS ( Infrastructure as a service )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     iaas  aws ec2  aws s3


 Q2667. Which category of services, Amazon Lambda belongs to ? Amazon Web Services (AWS)
Ans. It's Serverless and PAAS ( Platform as a service )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     paas  serverless


 Q2668. What are the different types of Services GCP provides ?Google Cloud Platform (GCP)
Ans. Compute
Network
Storage
Big Data
Machine Learning

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


 Q2669. What is the difference between Billing Alerts and Budget Quotas in GCP ?Google Cloud Platform (GCP)
Ans. Alerts only let customer knows of any excessive usage whereas Quota restricts the usage beyond a certain point.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     GCP Billing


 Q2670. How Resource Pooling helps saving cost ?Cloud Computing
Ans. With resource pooling and Pay as per use , Bigger companies like Google and Amazon can buy Large physical hardware and employ economy of scale and hence resulting in cost saving for customers.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     Google Cloud Platform (GCP)


previous 30   next 30

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: