Krantik Chavan has Published 308 Articles

Execute a script when the media has paused but is expected to resume in HTML?

Krantik Chavan

Krantik Chavan

Updated on 03-Mar-2020 07:40:21

73 Views

The onwaiting attribute triggers when a video pause and buffers to reume again. You can try to run the following code to implement the onwaiting attribute −Example           Play                                    Your browser does not support the video element.                      function myFunction() {             document.getElementById("test").innerHTML = "Media resumes again";          }          

Different types of operators in C++

Krantik Chavan

Krantik Chavan

Updated on 26-Feb-2020 12:33:01

458 Views

There are many types of operators in C++. These can be broadly categorized as: arithmetic, relational, logical, bitwise, assignment and other operators.Arithmetic OperatorsAssume variable A holds 10 and variable B holds 20, then −OperatorDescription       +        Adds two operands. A + B will give 30-Subtracts second ... Read More

Which is the best book for Java interview preparation

Krantik Chavan

Krantik Chavan

Updated on 25-Feb-2020 05:29:24

98 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.

Creating Java Hello World Program

Krantik Chavan

Krantik Chavan

Updated on 24-Feb-2020 12:42:53

357 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 ... Read More

How can we write MySQL handler, in a stored procedure, that sets the particular value of a variable and continues the execution?

Krantik Chavan

Krantik Chavan

Updated on 12-Feb-2020 08:02:43

154 Views

As we know that whenever an exception occurred in MySQL stored procedure, it is very important to handle it by throwing proper error message because if we do not handle the exception, there would be a chance to fail application with that certain exception in a stored procedure. MySQL provides ... Read More

What is overloading a unary operator in C++?

Krantik Chavan

Krantik Chavan

Updated on 11-Feb-2020 07:21:47

229 Views

The single operators operate on one quantity and following are the samples of single operators − - The increment ( ) and decrement (--) operators. The compiler distinguishes between the different meanings of an operator by examining the types of its operands.The unary operators operate on a single operand and ... Read More

When should you use 'friend' in C++?

Krantik Chavan

Krantik Chavan

Updated on 11-Feb-2020 04:58:06

187 Views

A friend function of a class is defined outside that class' scope but it has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.A friend can be a function, function ... Read More

What are the applications of C++ programming?

Krantik Chavan

Krantik Chavan

Updated on 10-Feb-2020 11:05:19

2K+ Views

C++ is a widely used programming language that is used for writing large-scale commercial applications for end-users. Some of the major applications built using C++ by major software vendors and giants are −Google − Google file system, Google Chromium browser, and MapReduce large cluster data processing are all written in ... Read More

How can we export data to a CSV file along with columns heading as its first line?

Krantik Chavan

Krantik Chavan

Updated on 07-Feb-2020 05:41:38

107 Views

For adding the column values we need to use UNION statement. It can be demonstrated with the help of the following example −ExampleIn this example data from student_info will be exporting to CSV file. The CSV file will have the first line as the name of the columns.mysql>(SELECT 'id', 'Name', ... Read More

HTML5 Canvas Transformation

Krantik Chavan

Krantik Chavan

Updated on 30-Jan-2020 07:07:31

229 Views

HTML5 canvas provides methods that allow modifications directly to the transformation matrix. The transformation matrix must initially be the identity transform. It may then be adjusted using the transformation methods.ExampleLet us see an example of canvas transformation:                    function drawShape(){ ... Read More

Previous 1 ... 7 8 9 10 11 ... 31 Next
Advertisements