×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Johar Ali
has Published
71
Answers
How to handle when JavaScript is turned off?
Javascript
Web Development
Front End Technology
Johar Ali
Published on 11-Jan-2018 10:53:54
Nowadays, almost every web browser supports JavaScript. If it is turned off, you can use <noscript> tag. To let users know about non-JavaScript web browsers, use the <noscript> tag. The HTML <noscript> tag is used to handle the browsers, which do recognize <script> tag but do not support scripting. This ...
Read More
Where should the Google Analytics Tracking Code be placed?
Web Analytics
SEO
Google Analytics
Johar Ali
Published on 10-Jan-2018 15:16:17
When integrating your website with Google Analytics, add the Tracking Code in your code. This will allow Google Analytics to track the page views and provide other analytics.Copy the code and place it just before closing <head> tag i.e. </head> in your website code. When you will integrate, the following ...
Read More
How to use external “.js” files in an HTML file?
HTML
Web Development
Front End Technology
Johar Ali
Published on 10-Jan-2018 12:44:25
Create external JavaScript file with the extension .js. After creating, add it to the HTML file in the script tag. The src attribute is used to include that external JavaScript file.If you have more than one external JavaScript file, then add it in the same web page to increase performance ...
Read More
Should I write my script in the body or the head of the HTML?
Javascript
Web Development
Front End Technology
Johar Ali
Published on 10-Jan-2018 11:32:50
It is suggested that you should place the script within the <head> tag or <body> tag. It is good for performance to add JavaScript in <body> element.ExampleHere is an example to add <script> under <body>…</body> −<html> <body> <script> <!-- ...
Read More
What is a switch case statement in Java and how to use it?
Java 8
Object Oriented Programming
Programming
Johar Ali
Published on 08-Jan-2018 11:40:36
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case.Syntaxswitch(expression) { case value : // Statements break; case value : ...
Read More
What is the ‘nested if’ statement in Java and how to use it?
Java 8
Object Oriented Programming
Programming
Johar Ali
Published on 08-Jan-2018 11:11:31
It is always legal to nest if-else statements which means you can use one if or else if statement inside another if or else if statement.Syntaxif(Boolean_expression 1) { // Executes when the Boolean expression 1 is true if(Boolean_expression 2) { // Executes when the Boolean ...
Read More
How to use ‘while loop’ in Java?
Java 8
Object Oriented Programming
Programming
Johar Ali
Published on 05-Jan-2018 15:13:36
A while loop statement in Java programming language repeatedly executes a target statement as long as a given condition is true.SyntaxThe syntax of a while loop is −while(Boolean_expression) { // Statements }Here, statement(s) may be a single statement or a block of statements. The condition may be any expression, and ...
Read More
What is a final parameter in java?
Java 8
Object Oriented Programming
Programming
Johar Ali
Published on 04-Jan-2018 10:39:11
You can pass final variables as the parameters to methods in Java. A final variable can be explicitly initialized only once. A reference variable declared final can never be reassigned to refer to a different object. However, the data within the object can be changed. So, the state of the ...
Read More
How to declare a local variable in Java?
Java 8
Object Oriented Programming
Programming
Johar Ali
Published on 04-Jan-2018 10:28:42
Local variables are declared in methods, constructors, or blocks. Local variables are created when the method, constructor or block is entered and the variable will be destroyed once it exits the method, constructor, or block. A local variable is the one which is declared within a method. The scope of ...
Read More
What is the difference between class variables and instance variables in Java?
Java 8
Object Oriented Programming
Programming
Johar Ali
Published on 03-Jan-2018 14:47:44
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
Previous
1
2
3
4
5
6
7
8
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout