RSSProgramming Language

In Javascript, How Would You Print Out The Contents Of An Object?

Printing out the contents of an object in Javascript is quite beneficial when debugging your Javascript code. Following are some ways for printing out an object. For/in loop of The Javascript You can print out the contents of a Javascript object with the use of for/in loop. This loop is totally different when compared to […]

Continue Reading

In Javascript, What Is Function Scope?

Although there is an absence of Black Scope in Javascript, however, it comprises of function scope. This term means that all the variables that are declared inside a function can be seen in the whole function in which they have been defined; it does not matter that those variables are declared if statement, for loop, […]

Continue Reading

The __Autoload Function In PHP

All the PHP functions that begin using a double underscore are known as PHP magic functions. In the same way, the __autoload function is also known as a magic function. This is because it possesses a double underscore in front of it. Significance of autoload function The __autoload function is used in PHP for simplifying […]

Continue Reading

Meaning of namespace in C++

Before we start to discuss that what actually a namespace is, it would be best to illustrate a simple example of why and when we would require namespaces. Have a look at the following two fictional C++ header files: // anyheaderfile.h class Sample { …  };   // anyslibfile.h class Sample { …  };   […]

Continue Reading

Difference Between A Class Type And A Primitive Type In Java

In Java, every variable has a type, which basically tells Java about the treatment of that variable, and how much memory should be assigned for that variable. Generally, Java has key types of characters, different types of floating point numbers, different types of integers, and also types for the values false and true –bool, char, […]

Continue Reading

Explanation and Example Of Anonymous Classes In Java

In Java, anonymous classes are more precisely known as anonymous inner classes. Always remember, without the “inner”, there’s no such thing as anonymous classes. This distinction is significant because anonymous inner classes mean that they are defined within another class. Basically, anonymous inner classes are those inner classes that are declared without using any class […]

Continue Reading

Use Of Inner Classes In Java

The inner classes were first introduced in Java 1.1 version. Since the introduction of inner classes, they have inspired several different opinions among people. It is essential to know that when you can use inner classes because the utilization of inner classes in the wrong conditions can result in code that’s not easy to maintain […]

Continue Reading

When Should You Use the “var” Keyword in JavaScript?

“Var” is the keyword for variable in JavaScript. It is used to declare, name and represent data in JavaScript. The use of variables in JavaScript is to manipulate the variables in terms of values/names during code’s runtime. You must try to assign meaningful names/values for proper execution of codes. The keyword “var” is used in […]

Continue Reading

In PHP, What Are Magic Methods And How Are They Used?

PHP, a general programming language as well as a web development language has the feature of “magic methods”. In PHP, magic methods are used in Object oriented programming (OOP). The magical terms are distinguished by placing prefix of two underscores “__”. Magic functions in PHP: __construct(), __destruct() __call(), __callStatic() __isset(), __unset() __set(), __get() __wakeup(), __sleep() […]

Continue Reading

What Is Reflection In Java?

Concept of Reflection in Computer Programs With respect to the computer programs, reflection of a program is the capability of examining and modifying its assembly of data and operation at runtime. The data may include a set of values, meta-data or corollary at the same time. Reflection is used to alter the observable complexity for […]

Continue Reading