Johar Ali has Published 48 Articles

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

Johar Ali

Johar Ali

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

31K+ 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

185 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

151 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

207 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

524 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 decrement (--) operator in JavaScript?

Johar Ali

Johar Ali

Updated on 15-Jun-2020 05:39:59

420 Views

The decrement operator decreases an integer value by one. Here’s an example where the value of a is decremented twice using decrement operator twice −ExampleLive Demo                    

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

265 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

250 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

84 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 $(document).ready() equivalent in JavaScript?

Johar Ali

Johar Ali

Updated on 13-Jun-2020 09:15:10

2K+ Views

In jQuery, if you want an event to work on your page, you should call it inside the $(document).ready() function. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded.$(document).ready(function() {    alert(“Document loaded successful!"); });ExampleIn JavaScript, to achieve the same ... Read More

Advertisements