Nancy Den has Published 330 Articles

How can we retrieve a blob datatype from a table using the getBinaryStream() method in JDBC?

Nancy Den

Nancy Den

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

456 Views

The ResultSet interface provides the method named getBlob() to retrieve blob datatype from a table in the database. In addition to this, it also provides a method named getBinaryStream()Like getBlob() this method also accepts an integer representing the index of the column (or, a String value representing the name of ... Read More

The toArray(T[]) method of AbstractSequentialList in Java

Nancy Den

Nancy Den

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

154 Views

The difference between toArray() and toArray(T[] arr) is that both the methods returns an array containing all of the elements in this collection, but the latter has some additional features i.e. the runtime type of the returned array is that of the specified array.The syntax is as follows:public T[] ... Read More

StringStream in C++ for Decimal to Hexadecimal and back

Nancy Den

Nancy Den

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

564 Views

In this section we will see how to convert Decimal to Hexadecimal string and also from Hexadecimal string to Decimal string in C++. For this conversion we are using the stringstream feature of C++.String streams are used for formatting, parsing, converting a string into numeric values etc. The Hex is ... Read More

How to insert an image in to Oracle database using Java program?

Nancy Den

Nancy Den

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

5K+ Views

To hold an image in Oracle database generally blob type is used. Therefore, make sure that you have a table created with a blob datatype as:Name Null? Type ----------------------------------------- -------- ---------------------------- NAME VARCHAR2(255) IMAGE BLOBTo insert an image in to Oracle database, follow the steps given below:Step 1: Connect to ... Read More

What happen if we concatenate two string literals in C++?

Nancy Den

Nancy Den

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

83 Views

In this section we will see another property of string and string literals. If we want to concatenate two strings in C++, we have to remember some of things.If x + y is the expression of string concatenation, where x and y both are string. Then the result of this ... Read More

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

59 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

60 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

Advertisements