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”
Month: July 2015
Dynamic Method Dispatch
Dynamic Method dispatch is a well known term in java technology and mainly part of theoretical concept but used very often in the programming. To consider more in deep let’s consider an example. Continue reading “Dynamic Method Dispatch”
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”
parse VS valueOf
In many of the conversions form int to String and String to int or double we suppose to use the Static methods either parse or valueOf for every type. Consider following example,
Continue reading “parse VS valueOf”
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”
Try to Catch Finally
I have read many questions on stackOverFlow about behavior and confusion about exception handling mechanism. Here I will discuss some of the important points related to try-catch and finally. Continue reading “Try to Catch Finally”
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”
String pool and String intern
While developing the String related program I came across with this specific function which is I think one of the most unused functionality of String in day to day development.
Continue reading “String pool and String intern”