Smita Kapse has Published 558 Articles

How to draw circle in HTML page?

Smita Kapse

Smita Kapse

Updated on 25-Feb-2020 07:51:53

9K+ Views

To draw a circle in HTML page, use SVG or canvas. You can also draw it using CSS, with the border-radius property.ExampleYou can try to run the following code to learn how to draw a circle in HTMLLive Demo                   ... Read More

How to play sound file in a web-page in the background?

Smita Kapse

Smita Kapse

Updated on 25-Feb-2020 07:37:38

22K+ Views

The HTML element is used to add audio to web page. To play sound file in the background on a web page, use the … element. Also, use the autoplay attribute. This will run music in the background whenever the page loads.Set the width and height in a way ... Read More

How to download all images on a web page at once?

Smita Kapse

Smita Kapse

Updated on 25-Feb-2020 07:18:08

1K+ Views

Chrome Extensions eases your work since it provides more features. To download all images on a web page at once, use a Chrome Extension.Download the Image Downloader chrome extension, which is open source. After adding it to Chrome, you can see the following settings −An icon will be visible in ... Read More

C++ vs C++0x vs C++11 vs C++98

Smita Kapse

Smita Kapse

Updated on 11-Feb-2020 11:15:38

1K+ Views

C++98 was the first edition of the C++ standard. It had defined all the basic language constructs, the STL, and the standard library.C++03 was the next revision to this standard. This was majorly a considered a bugfix for the standard as it corrected 92 core language defect reports, 125 library ... Read More

What are copy elision and return value optimization?

Smita Kapse

Smita Kapse

Updated on 11-Feb-2020 10:36:03

309 Views

Copy elision is an optimization implemented by most compilers to prevent extra (potentially expensive) copies in certain situations. So if you have some code that is creating objects not being used or don't have side effects, examplestruct MyStruct {    MyStruct() {}    MyStruct(const MyStruct&) {       std::cout

What is the difference between prefix and postfix operators in C++?

Smita Kapse

Smita Kapse

Updated on 11-Feb-2020 07:44:03

2K+ Views

In the prefix version (i.e., ++i), the value of i is incremented, and the value of the expression is the new value of i. So basically it first increments then assigns a value to the expression. In the postfix version (i.e., i++), the value of i is incremented, however, the {value|the ... Read More

What is the difference between the dot (.) operator and -> in C++?

Smita Kapse

Smita Kapse

Updated on 11-Feb-2020 04:49:15

2K+ Views

The dot and arrow operator are both used in C++ to access the members of a class. They are just used in different scenarios. In C++, types declared as class, struct, or union are considered "of class type". So the following refers to all three of them.a.b is only used ... Read More

The extern storage class in C++

Smita Kapse

Smita Kapse

Updated on 10-Feb-2020 12:33:34

3K+ Views

The extern storage class specifier lets you declare objects that several source files can use. An extern declaration makes the described variable usable by the succeeding part of the current source file. This declaration does not replace the definition. The declaration is used to describe the variable that is externally ... Read More

How many ways are there to register a driver in Java?

Smita Kapse

Smita Kapse

Updated on 07-Feb-2020 07:01:31

1K+ Views

To connect with a database using JDBC you need to select get the driver for the respective database and register the driver. You can register a database driver in two ways −Using Class.forName() method − The forName() method of the class named Class accepts a class name as a String ... Read More

How do we close resources automatically in Java?

Smita Kapse

Smita Kapse

Updated on 07-Feb-2020 06:45:19

426 Views

You can close resources automatically using the try-with-resources in JDBC.Syntaxtry(Declaration of resource){    body..... } catch (SQLException e) {    e.printStackTrace(); }It is a try statement with one or more resources declared at try. where resource is an object which should be closed once it is no more required.You can ... Read More

Advertisements