×
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
Mkotla
has Published
118
Answers
Should I include language="javascript" in my SCRIPT tags?
Javascript
Web Development
Front End Technology
mkotla
Published on 05-Jan-2018 17:35:54
The language attribute in JavaScript is optional since the introduction of HTML5 brought some new improvements. JavaScript became the default language for HTML5 and modern browsers. Therefore, now adding javascript isn’t required in <script> tag.This attribute specifies what scripting language you are using. Typically, its value will be javascript. Although ...
Read More
How to Line Breaks to JavaScript Alert?
Javascript
Web Development
Front End Technology
mkotla
Published on 05-Jan-2018 16:15:42
To add line breaks to JavaScript alert, use “\r\n”. In the following example, we will see how to display text in JavaScript alert.Example Live Demo<html> <body> <script> function DisplayAlert() { var newLine = "\r\n" ...
Read More
What does the leading semicolon in JavaScript libraries do?
Javascript
Web Development
Front End Technology
mkotla
Published on 05-Jan-2018 15:53:06
A function in JavaScript looks like the following:(function(){...})()A library in JavaScript shows a function, which begins with a semicolon, for example:;(function ) { }The semicolon allows to safely concatenate several JS files into one. This is to serve it faster as one HTTP request.A leading semicolon can also be to ...
Read More
What is the 'new' keyword in JavaScript?
Javascript
Web Development
Front End Technology
mkotla
Published on 05-Jan-2018 14:19:00
The new keyword in JavaScript is the new operator. It creates an instance of a user-defined object type.Here’s the syntax:new constructor[([arguments])]ExampleLet us see an example to learn about the usage of new operator:<!DOCTYPE html> <html> <body> <p id = "test"></p> <script> ...
Read More
What is the difference between null and undefined in JavaScript?
Javascript
Web Development
Front End Technology
mkotla
Published on 04-Jan-2018 17:10:55
In JavaScript, undefined is a type, whereas null an object.undefinedIt means a variable declared, but no value has been assigned a value.For example, var demo; alert(demo); //shows undefined alert(typeof demo); //shows undefinednullWhereas, null in JavaScript is an assignment value. You can assign it to a variable.For example, var demo = ...
Read More
What are JavaScript language resources?
Javascript
Web Development
Front End Technology
mkotla
Published on 04-Jan-2018 14:52:01
JavaScript resources include resources for the scripting languages standard ECMAScript.This is standardized in the ECMA-262 and ECMA-402 specifications.Here is the ECMAScript standard for the current editions:ECMA-2629th Edition - This is ECMAScript 2018 Language Specification.ECMA-402 5th Edition - This is ECMAScript 2018 Internationalization API Specification.Here are the ECMAScript standards for historical ...
Read More
How multiple inheritance is implemented using interfaces in Java?
Java 8
Object Oriented Programming
Programming
mkotla
Published on 03-Jan-2018 12:07:14
Java does not support multiple inheritance. This means that a class cannot extend more than one class. Therefore, following is illegal −Examplepublic class extends Animal, Mammal{}However, a class can implement one or more interfaces, which has helped Java get rid of the impossibility of multiple inheritance.The extends keyword is used ...
Read More
Why is method overloading not possible by changing the return type of the method only in java?
Java 8
Object Oriented Programming
Programming
mkotla
Published on 03-Jan-2018 11:35:36
Overloading is the mechanism of binding the method call with the method body dynamically based on the parameters passed to the method call. If you observe the following example, it contains two methods with same name, different parameters and if you call the method by passing two integer values the ...
Read More
Are static methods inherited in Java?
Java 8
Object Oriented Programming
Programming
mkotla
Published on 03-Jan-2018 10:12:33
The static keyword is used to create methods that will exist independently of any instances created for the class. Static methods do not use any instance variables of any object of the class they are defined in. Static methods take all the data from parameters and compute something from those ...
Read More
What are inner classes in Java?
Java 8
Object Oriented Programming
Programming
mkotla
Published on 02-Jan-2018 18:16:46
Java allows writing classes within classes and the class which is written inside another is known as inner class.Inner classes are a kind of security mechanism in Java.You can declare an inner class private once you do it cannot be accessed from an object outside the class.Java supports three kinds ...
Read More
Previous
1
...
6
7
8
9
10
11
12
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout