Golang Interview Questions


  1. What is the new function?
  2. What is vendor in the go module?
  3. Write a producer-consumer program using goroutine.
  4. Write a two routine: even and old. The even goroutine should only print even numbers and the odd goroutine will only print odd numbers. The max number will be given as an input parameter.
  5. What is the closure function in Golang? How to create it?
  6. How to access the shared variable in Golang when multiple goroutines are trying to access it? How to handle race condition?
  7. What is the difference between Golang's concurrency with other languages?
  8. What is the difference between concurrency and parellism? Which one Golang uses and how?
  9. How Golang concurrency is fast.

Comments

Popular posts from this blog

Data types and Literals in Java

equals() method of Object class in Java

Create your own LinkedList in Java