Johar Ali has Published 39 Articles

How to create an array of Object in Java

Johar Ali

Johar Ali

Updated on 07-Mar-2025 17:39:38

843 Views

In this article, we will learn to create an array of objects in Java. An array of Object classes can be created that can accept any type of object. During the operation on such an array, instanceof operator can be used. Different Approaches The following are the two different approaches ... Read More

What is the difference between class variables and instance variables in Java?

Johar Ali

Johar Ali

Updated on 12-Sep-2023 02:05:05

39K+ Views

Following are the notable differences between Class (static) and instance variables. Instance variables Static (class) variables Instance variables are declared in a class, but outside a method, constructor or any block. Class variables also known as static variables are declared with the static keyword in a ... Read More

How to print the content of JavaScript object?

Johar Ali

Johar Ali

Updated on 16-Jun-2020 13:50:35

261 Views

To print content of JavaScript object, you can try to run the following code. Here, the object is created using the new keyword −ExampleLive Demo                          var dept = new Object();          dept.employee ... Read More

How to change Firefox Browser theme?

Johar Ali

Johar Ali

Updated on 15-Jun-2020 08:44:18

364 Views

Firefox web browser is widely used and loved by many users around the world. Well, you can easily change the Firefox Browser theme and make it look more awesome.Let’s see how to reach the Firefox theme section and change the theme −Open Firefox MenuGo to the following section and click ... Read More

How to block a website in your web browsers (Chrome and Internet Explorer)

Johar Ali

Johar Ali

Updated on 15-Jun-2020 08:39:06

337 Views

To block a website on any of the web browsers like Google Chrome, Firefox, and Internet Explorer in a Windows system is quite easy. Follow the below-given steps to block a website −Open Notepad as an administrator i.e. Run as Administrator.Now, after opening Notepad, click on File, then click Open ... Read More

Sending a table from UI5 application to ABAP Function Module

Johar Ali

Johar Ali

Updated on 15-Jun-2020 06:38:18

880 Views

This can be done using an OData service that accepts POST request from your UI5 application and writes data to a database table. While implementing OData service, you have to call ABAP Backend Class method.You have to remember that all application and classes are instantiated for processing and will end ... Read More

What is the difference between: var functionName = function() {} and function functionName() {} in Javascript

Johar Ali

Johar Ali

Updated on 15-Jun-2020 05:25:58

357 Views

functionDisplayOne is a function expression, however, functionDisplayTwo is a function declaration. It is defined as soon as its surrounding function is executed.Both the ways are used to declare functions in JavaScript and functionDisplayOne is an anonymous function.Here’s the function expression −functionDisplayOne(); var functionDisplayOne = function() {    console.log("Hello!"); };The following ... Read More

Why would a jQuery variable start with a dollar sign?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 13:14:27

370 Views

When you will begin working about jQuery, you will get to know about the usage of the $ sign. A $ sign is used to define jQuery.jQuery variables begin with $ to distinguish them from a standard JavaScript object. Also, it is a convention. jQuery selectors start with the dollar ... Read More

Why JavaScript 'var null' throw an error but 'var undefined' doesn't?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 11:42:53

173 Views

The web browser throws an error for “var null” because it is a reserved identifier.You cannot use the following literals as identifiers in ECMAScript −null frue falseundefined A property with no definition. It is not known and not a reserved identifier. Its type is undefined.nullIt is known and a reserved identifier. ... Read More

What is the difference between Declaring and Initializing a variable in JavaScript?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 08:39:29

501 Views

The following is stated about declaration and initialization of a variable in ECMAScript specification −A var statement declares variables that are scoped to the running execution context’s VariableEnvironment. Var variables are created when their containing Lexical Environment is instantiated and are initialized to undefined when created. [...] A variable defined ... Read More

Advertisements