Switch case statements in Golang
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
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
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
How to make a LED blinking on Raspberry Pi using C. Simple C code sample using WiringPi library.
Java Exceptions handling
How to handle exceptions in Java. Checked and unchecked exceptions example using custom implementation.
How to create thread pool in Java
How to create a simple thread pool in Java using ExecutorService, Executors, ThreadPoolExecutor and RejectedExecutionHandler classes.