Daniol Thomas has Published 209 Articles

How to specify an image as a client-side image-map in HTML?

Daniol Thomas

Daniol Thomas

Updated on 03-Mar-2020 12:26:12

485 Views

Use the usemap attribute to specify an image as a client-side image-map in HTML. You can try to run the following code to implement usemap attribute −Example           HTML map Tag                                              

How to store data in the browser with the HTML5 localStorage API?

Daniol Thomas

Daniol Thomas

Updated on 25-Feb-2020 07:02:41

177 Views

HTML5 localStorage saves string data in the browser and lasts beyond the current session. localStorage stores the data, with no expiration, whereas sessionStorage is limited to the session only. When the browser is closed, the session is lost.The Local Storage is designed for storage that spans multiple windows and lasts ... Read More

Best book to learn Java programming for beginners

Daniol Thomas

Daniol Thomas

Updated on 25-Feb-2020 06:14:12

161 Views

Following books are on top from popularity and content wise and are a good resource to learn java programming from beginner to advance level.

A closer look at Java "Hello World" program

Daniol Thomas

Daniol Thomas

Updated on 24-Feb-2020 12:41:02

180 Views

Let us look at a simple code that will print the words Hello World.ExampleLive Demopublic class MyFirstJavaProgram {    /* This is my first java program. *    This will print 'Hello World' as the output */    public static void main(String []args) {       System.out.println("Hello World"); // ... Read More

private access modifier in Java

Daniol Thomas

Daniol Thomas

Updated on 24-Feb-2020 12:30:54

399 Views

Methods, variables, and constructors that are declared private can only be accessed within the declared class itself.Private access modifier is the most restrictive access level. Class and interfaces cannot be private.Variables that are declared private can be accessed outside the class, if public getter methods are present in the class.Using ... Read More

Which is the best tool to debug JavaScript/jQuery code?

Daniol Thomas

Daniol Thomas

Updated on 21-Feb-2020 12:42:05

132 Views

The following are some of the best browser-based debugging tools for JavaScript −FireBugFireBug is a Firefox addon, widely used to inspect the code. Edit, debug and monitor CSS, HTML, and JavaScript live in any web page.Credit− FirebugDragonFlyDragonFly is a fully-featured suite of developer tools. It supports cross-device and remote debugging, ... Read More

How do we count the records from MySQL table where column holds duplicate/triplicates data?

Daniol Thomas

Daniol Thomas

Updated on 13-Feb-2020 07:53:40

82 Views

Suppose we have the following table named stock_item in which the column quantity is having duplicate values i.e. for item name ‘Notebooks’ and ‘Pencil’, the column ‘Quantity’ is having duplicate values ‘40’ and for items ‘Shirts’, ‘Shoes’ and ‘Trousers’ triplicate value 29 is hold by column ‘quantity’ as shown in ... Read More

What is Bitwise XOR in C++?

Daniol Thomas

Daniol Thomas

Updated on 11-Feb-2020 07:23:15

220 Views

The bitwise exclusive OR operator (^) compares every bit of} its 1st operand to the corresponding bit of its second operand. If one bit is 0 and the other bit is 1, the corresponding result bit is set to 1. Otherwise, the corresponding result bit is set to 0. Both ... Read More

Explicit type casting operator in C++

Daniol Thomas

Daniol Thomas

Updated on 11-Feb-2020 05:33:34

491 Views

A type cast provides a method for explicit conversion of the type of an object in a specific situation. It can be used as a unary expression −( type-name ) cast-expressionThe compiler treats cast-expression as type type-name after a typecast has been made. Casts are used to convert objects of ... Read More

What are Boolean Literals in C++?

Daniol Thomas

Daniol Thomas

Updated on 10-Feb-2020 12:10:57

285 Views

Boolean literals are literals that have either the meaning true or false. There are only two Boolean literals in C++: true and false. These literals are of type bool. You can use them as −Example#include using namespace std; int main() {    bool my_bool = true;    if(my_bool) {       cout

Previous 1 ... 6 7 8 9 10 ... 21 Next
Advertisements