Run or Start

Threading is a way too broad and important concept in Java technology and not only java technology it’s a crucial term in computer science as well. Threading, specifically in java is used in almost every professional programming. Most of programmers might have faced following question in interview, Continue reading “Run or Start”

Pure and Impure Method

One of the most rare terms used in java to explain the function or method in the programming, even though this terms are commonly based on theory and not used in regular programming by the professionals but still it is worth to take a look at this specific terms which are ‘pure’ and ‘impure’ functions. Continue reading “Pure and Impure Method”

static hates non-static

In basic programming we have tried many times (by mistake) to access the non static method of class directly from the static method specifically from the main method and by doing that we get stuck to the following compile time error.
Continue reading “static hates non-static”

Dissemble the class

It is hardly required to check the bytecode of java class. ‘byte code’ is nothing but the set of instructions that will be given to the JVM to perform specific operations. Checking the bytecode of your program has never been part of development although there are certain libraries which allow you to edit the byte code directly.Let’s keep the use of bytecode in development aside, even if in some critical points you may dig into the bytecode.
Continue reading “Dissemble the class”

Marker Interface

Even it’s an old concept but still in use and we just ignore it in our regular development. Concept of marker interface it quite a bit old to discuss now, when the programming has boosted by the annotation based development. To understand more we have to take reference of interface of Java API which is Serializable. It is also called Empty Interface or Tagging Interface. Continue reading “Marker Interface”

Java Bean VS Java POJO

As in development we have used POJO and Beans many time without considering the actual difference between them as for sake sometimes we don’t consider both of them different anymore. So it’s worth to discuss about the difference. Even Java doc fails to distinguish between them in deep. But still it has some basic differences which we will discuss today. Continue reading “Java Bean VS Java POJO”