Inline functions

Raju Pal

Inline function are used to reduced the calling overhead introduced by functions in C++. A function is either declared, defined or called. When the function was called, the control jump to memory address contained in function name. Yes, function names contains the addresses similar to variable name. More function calling in the program increases the overhead which results in poor …

Java Basics – 1

Raju Pal

Q1. Why Java classes does not support multiple inheritance? Ans-:   In java child class can not have two or more parent classes. This makes this language simple, easy to use and less complex. However, a class can implement multiple interfaces with the condition that class must override the behavior of interfaces according to its context. James gosling provide this option …

Packages in Java

Raju Pal

In Java, packages are the collection of similar type of classes, interfaces, enumeration and annotation types. These are organized in a well defined manner for ease of use. Packages are similar to header files in C/C++. The main objectives of having a package type structure in Java are as follows: Code reuse Organize classes and interface and prevent from name …