Nancy Den has Published 335 Articles

Stack Unwinding in C++

Nancy Den

Nancy Den

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

1K+ Views

Here we will see what is the meaning of stack unwinding. When we call some functions, it stores the address into call stack, and after coming back from the functions, pops out the address to start the work where it was left of.The stack unwinding is a process where the ... Read More

The containsAll() method of AbstractSequentialList in Java

Nancy Den

Nancy Den

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

51 Views

The containsAll() method of the AbstractSequentialList checks for all the elements in this collection. It returns TRUE if all this collection contains all the elements in the specified collection i.e. if the two collections are same.The syntax is as follows:public boolean containsAll(Collection c)Here, c is the collection to be checkedTo ... Read More

Operator Precedence and Associativity in C

Nancy Den

Nancy Den

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

10K+ Views

Operator precedence determines the grouping of terms in an expression and decides how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has a higher precedence than the addition operator.For example, x = 7 + 3 * 2; here, x is assigned 13, ... Read More

The removeAll() method of AbstractSequentialList in Java

Nancy Den

Nancy Den

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

53 Views

The removeAll() is a method inherited from AbstractCollection class. It removes all the elements of this collection that are also contained in the specified collection.The syntax is as follows:public boolean removeAll(Collection c)Here, the parameter c is the collection having elements to be removed from this collection.To work with the AbstractSequentialList ... Read More

Execution of printf with ++ operators in C

Nancy Den

Nancy Den

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

2K+ Views

In some problems we can find some printf() statements are containing some lines with ++ operator. In some questions of competitive examinations, we can find these kind of questions to find the output of that code. In this section we will see an example of that kind of question and ... Read More

C Program to find sum of two numbers without using any operator

Nancy Den

Nancy Den

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

1K+ Views

In this section we will see how to print the sum of two numbers without using any type of operator into our program.This problem is tricky. To solve this problem we are using minimum width field of printf() statement. For an example if we want to put x number of ... Read More

Ternary operator ?: vs if…else in C/C++

Nancy Den

Nancy Den

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

599 Views

We know that the ternary operator is the conditional operator. Using this operator, we can check some condition and do some task according to that condition. Without using the ternary operator, we can also use the if-else conditions to do the same.The effect of ternary operator and if-else condition are ... Read More

What is the difference between the methods setBlob() and setBinaryStream() which is preferable in JDBC?

Nancy Den

Nancy Den

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

599 Views

The setBlob() method is used to set value for Blob datatype in the database. It has three variants as follows:void setBlob(int parameterIndex, Blob x): Sets the given Blob value to the parameter at the specified index.void setBlob(int parameterIndex, InputStream inputStream): Sets the contents of the given input stream as a ... Read More

What is AbstractList Class in Java?

Nancy Den

Nancy Den

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

460 Views

The AbstractList class provides an implementation of the List interface.For an unmodifiable listProgrammer needs to extend this class and provide implementations for the get(int) and size() methods.For a modifiable listProgrammer must override the set(int, E) method. If the list is variable-size the programmer must override the add(int, E) and remove(int) ... Read More

Print leading zeros with C++ output operator

Nancy Den

Nancy Den

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

6K+ Views

Here we will see how to print leading zeros as output in C++. We know that if we directly put some zeros before some numeric values, then all zeros are discarded, and only exact numbers are printed.In C, we can solve this problem by using some options of format specifier. ... Read More

Advertisements