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 Rating

   next 30
 Q31. What are the different ways of creating threads in java?Core Java
Ans. There are two ways to create the threads in java
a) By extending java.lang.Thread class.
b) By implementing java.lang.Runnable interface.

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

   Like         Discuss         Correct / Improve     


 Q32. What are Loops in Java? What are three types of loops?Core Java
Ans. Looping is used in programming to execute a statement or a block of statement repeatedly. There are three types of loops in Java:
1) For Loops
For loops are used in java to execute statements repeatedly for a given number of times. For loops are used when number of times to execute the statements is known to programmer.
2) While Loops
While loop is used when certain statements need to be executed repeatedly until a condition is fulfilled. In while loops, condition is checked first before execution of statements.
3) Do While Loops
Do While Loop is same as While loop with only difference that condition is checked after execution of block of statements. Hence in case of do while loop, statements are executed at least once.

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

   Like         Discuss         Correct / Improve     


 Q33. What is the difference between double and float variables in Java?Core Java
Ans. In java, float takes 4 bytes in memory while Double takes 8 bytes in memory. Float is single precision floating point decimal number while Double is double precision decimal number.

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

   Like         Discuss         Correct / Improve     


 Q34. Can main() method in Java can return any data?Core Java
Ans. In java, main() method can't return any data and hence, it's always declared with a void return type.

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

   Like         Discuss         Correct / Improve     


 Q35. What's the difference between an array and Vector?Core Java
Ans. An array groups data of same primitive type and is static in nature while vectors are dynamic in nature and can hold data of different data types.

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

   Like         Discuss         Correct / Improve     


 Q36. How to swap two numbers without using a third variable?Core Java
Ans. int a = 10;
int b = 20;

b = b + a; // now b is sum of both the numbers
a = b - a; // b - a = (b + a) - a = b (a is swapped)
b = b - a; // (b + a) - b = a (b is swapped)

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

   Like         Discuss         Correct / Improve     


 Q37. Can you share some of the best practices while designing authentication and authorization system ?Authentication
 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     best practices


 Q38. What are the best practices for designing rest web services ?Web Services
 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     


 Q39. Could you walk me through and draw out a sketch of a recent architecture project you completed ?architecture
 This question was recently asked at 'Microsoft'.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     design     Asked in 1 Companies


 Q40. What are system integrators in Cloud Computing?Cloud Computing
 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     Amazon Web Services (AWS)   Google Cloud Platform (GCP)


 Q41. What is Google BigQuery? What are the benefits of BigQuery for the data warehouse practitioners ?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     


 Q42. What are the different methods for the authentication of Google Compute Engine API ?Google Cloud Platform (GCP)
Ans. MS active directory concept and in GCP its Cloud Identity

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

   Like         Discuss         Correct / Improve     Google Compute Engine API  GCP Authentication


 Q43. How does the pricing model work in GCP cloud ?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     GCP Pricing Model


 Q44. How are the Google Compute Engine and Google App Engine related ?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     Google Compute Engine  Google App Engine


 Q45. What do you know about Google Compute Engine ?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     Google Compute Engine


 Q46. What are the libraries and tools for cloud storage on GCP ?Google Cloud Platform (GCP)
Ans. Console - GUI Interface
gsutil - Command Line Interface
Rest API - Using JSON or XML API

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

   Like         Discuss         Correct / Improve     GCP Storage


 Q47. Explain method overridding.Core Java
 This question was recently asked at 'Ksolves'.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     overridding  polymorphism     Asked in 1 Companies


 Q48. Write a program to print next largest palindrome number? Core Java
 This question was recently asked at 'Ksolves'.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


 Q49. What are the benefits of using UI framework like Angular , View js etc instead of plain vanilla js and html ?Javascript
Ans. These frameworks facilitates easier product development and enhancement and maintainability by having separation of concerns ( using oops ) and helps in development of reusable libraries / components. So in nutshell , they make development and maintenance of large scale application easier.

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

   Like         Discuss         Correct / Improve     Javascript Frameworks  Angular  View js


 Q50. Have you ever used sessionStorage ? What is the better way to store session information - sessionStorage or session cookie ?Session Management
Ans. Session Cookie, because session storage can be accessed from XSS (Cross site Scripting) attacks but cookies (if set with "HttpOnly" and "Secure" flags) are more safer against these attacks.

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

   Like         Discuss         Correct / Improve     SessionStorage  session cookie  session management  javascript


 Q51. Have you ever had any problem with asynchronous programming due to race condition ?Angular
 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     race condition


 Q52. What are the different conditions that triggers view update in case of push ChangeDetectionStrategy ?Angular
Ans. 1. Any change in Input
2. Any even originating from the component or it's child components
3. Explicit trigger

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

   Like         Discuss         Correct / Improve     ChangeDetectionStrategy


 Q53. Which change detection strategy do you use in your application and Why ?Angular
Ans. We use ChangeDetectionStrategy.Push

As the application grows bigger , The default change detection strategy could become a performance overhead and hence should be avoided.

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

   Like         Discuss         Correct / Improve     ChangeDetectionStrategy     Asked in 1 Companies


 Q54. Difference between ViewChild and ContentChild.Angular
Ans. Any directive, component, and element which is part of component template is accessed as ViewChild. Whereas, any element or component which is projected inside is accessed as ContentChild.

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

   Like         Discuss         Correct / Improve     ViewChild  ContentChild   ViewChild vs ContentChild


 Q55. String processing in JavaCore Java
 This question was recently asked at 'Chase'.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


 Q56. what is strict mode in javascript ? How is it used ?Javascript
 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     


 Q57. What is concurrent interface ?Core Java
Ans. ConcurrentMap is an interface and it is a member of the Java Collections Framework. It represents a Map that is capable of handling concurrent access to it without affecting the consistency of entries in a map. ConcurrentMap interface present in java.util.concurrent package.

HashMap operations are not synchronized, while Hashtable provides synchronization. Though Hashtable is thread-safe, it is not very efficient. To solve this issue, the Java Collections Framework introduced ConcurrentMap in Java 1.5.

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

   Like         Discuss         Correct / Improve     Concurrent Interface   java.util.concurrent   Java 8 Concurrency   java concurrency   java 8     Asked in 1 Companies


 Q58. How dependency injection in angular helps with loose coupling in angular ?Angular
 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     Dependency injection


 Q59. Design pattern used in struts.Struts
Ans. Struts controller uses the Command design pattern and the action classes use the Adapter design pattern. The process() method of the RequestProcessor uses the Template method design pattern.

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

   Like         Discuss         Correct / Improve     Struts Design patterns     Asked in 1 Companies


 Q60. What are the benefits of Java over other Programming Languages ?Core Java
Ans. 1. JVM that makes it platform independent and facilitates portability.
2. Garbage Collector that protects from Memory Leaks.
3. Only usage of references and not pointer arithmetic and hence protects the application from memory issues like dangling pointers, memory leaks etc.
4. Support for OOPs that makes application development and maintenance easy.
5. Facilitates library development through use of interface / abstract classes.
6. Facilitates creation of scalable applications.
7. Huge repository of libraries and pool of people with java skill.

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

   Like         Discuss         Correct / Improve     benefits of java  advantages of java      basic        frequent


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: