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
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
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
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,
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.
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.
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