Switch case statements in Golang

  • 20 April 2020
  • ADM

The switch statement is an easier way to have a sequence of if-else statements. In Golang you don't need to have break at the end of each case, it breaks implicitly. Also the golang switch statement work on values of any type.


All keywords in Java

  • 09 March 2020
  • ADM

Keywords are special words in the programing language which have reserved use in the language. Keywords may not be used as identifiers in Java; for example you cannot declare a field whose name is a keyword.


How to measure execution time in Golang

  • 19 December 2019
  • ADM

To mesure the time used by an application in Golang or of a code section the functions time.Now() and time.Since() can be used.


Blinking LED on Raspberry Pi using C

  • 16 March 2017
  • ADM

How to make a LED blinking on Raspberry Pi using C. Simple C code sample using WiringPi library.


Java Exceptions handling

  • 16 June 2016
  • ADM

How to handle exceptions in Java. Checked and unchecked exceptions example using custom implementation.


How to create thread pool in Java

  • 05 April 2016
  • ADM

How to create a simple thread pool in Java using ExecutorService, Executors, ThreadPoolExecutor and RejectedExecutionHandler classes.