Ankitha Reddy has Published 75 Articles

Relational and comparison operators in C++

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

349 Views

In C Programming, the values keep in 2 variables can be compared using following operators and relation between them will be determined. These operators are called relational operators. Various C++ relational operators available are- Operators Description > Greater than >= Greater than or equal to == Is equal to != Is not equal to

How to use remove(obj), remove(index), and removeAll() methods in Java list collections?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

130 Views

remove(int index) − Removes the element at position index from the invoking list and returns the deleted element. The resulting list is compacted. That is, the indexes of subsequent elements are decremented by one. removeRange(int fromIndex, int toIndex) − Removes all of the elements whose index is between fromIndex, inclusive ... Read More

How MySQL behaves if I use INTERVAL keyword with an invalid date?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

89 Views

Actually, the behavior of MySQL depends upon the allow_invalid_dates mode. If this mode is enabled then MySQL will accept the invalid date and it would perform the date arithmetic as it performs with a valid date. Otherwise, if this mode is inactive then it will not accept the invalid date ... Read More

How can we export all the data from MySQL table into a text file?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

528 Views

It can be done with the help of SELECT … INTO OUTFILE statement. We are illustrating it with the help of the following example − Example Suppose we are having following data from table ‘Student_info’: mysql> Select * from Student_info; +------+---------+------------+------------+ | id | Name ... Read More

Making a Java String All Uppercase or All Lowercase.

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

871 Views

The toUpperCase() method converts all of the characters in this String to upper case using the rules of the default locale The toLowerCase() method converts all of the characters in this String to lower case using the rules of the default locale. Example Live Demo import java.lang.*; public ... Read More

Overloading unary operator in C++?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

661 Views

The operator keyword declares a function specifying what operator-symbol means when applied to instances of a class. This gives the operator more than one meaning, or "overloads" it. The compiler distinguishes between the different meanings of an operator by examining the types of its operands. The unary operators operate on ... Read More

How to set the order of the flexible item, relative to the rest with JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

58 Views

To set the order of the flexible item, relative to the rest of JavaScript, use the order property. You can try to run the following code to implement order property − Example Live Demo ... Read More

What is function overloading in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

1K+ Views

JavaScript does not support Function Overloading. The following shows function overloading − function funcONE(x, y) { return x*y; } function funcONE(z) { return z; } The above will not show an error, but you won't get desired results. On calling, // ... Read More

Which event occurs in JavaScript when the dragging of an element begins?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

92 Views

The ondragstart event triggers when dragging of an element begins.You can try to run the following code to learn how to implement ondragstart JavaScript event − Example Live Demo ... Read More

How to use comments to prevent JavaScript Execution?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

202 Views

If you want another code while working in the same code document, then use comments. Comment the previous code and add the alternative code to test it. After the testing completes, uncomment the previous code. In this way, you can test both the codes. While using comments follow the below ... Read More

Advertisements