Nancy Den has Published 290 Articles

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

Nancy Den

Nancy Den

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

6K+ 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

The containsAll() method of AbstractSequentialList in Java

Nancy Den

Nancy Den

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

114 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

The removeAll() method of AbstractSequentialList in Java

Nancy Den

Nancy Den

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

93 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

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

1K+ 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

739 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

How to add elements to AbstractList class in Java?

Nancy Den

Nancy Den

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

415 Views

To add elements to AbstractList class, the add() method is provided by the AbstractList class. The elemnt gets appended at the end of the list.The syntax is as follows:public boolean add(E ele)Here, the parameter ele is an element to be appended to this listTo work with the AbstractList class, import ... Read More

Find objects between two dates in MongoDB?

Nancy Den

Nancy Den

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

3K+ Views

Use operator $gte and $lt to find objects between two dates in MongoDB. To understand these operators, let us create a collection.Creating a collection here:>db.order.insert({"OrderId":1, "OrderAddrees":"US", "OrderDateTime":ISODate("2019-02-19")}; WriteResult({ "nInserted" : 1 }) >db.order.insert({"OrderId":2, "OrderAddrees":"UK", "OrderDateTime":ISODate("2019-02-26")}; WriteResult({ "nInserted" : 1 })Display all documents from the collection with the help of ... Read More

HTML5 applicationCache vs Browser Cache

Nancy Den

Nancy Den

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

352 Views

HTML5 applicationCacheIt can be understood by an example that a web application is cached, and accessible without a connected internet. Application cache has some advantages: users can use the application when they're offline, cached resources load faster and reduced server load. Browser cache Web browsers use caching to store HTML web pages by ... Read More

Top 10 websites for Advanced level Java developers

Nancy Den

Nancy Den

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

729 Views

There are many sites which are a good resource for java interview questions-answers. Following is the list of most popular websites.Tutorialspoint - www.tutorialspoint.comStackOverflow - www.stackoverflow.comDZone - www.dzone.comWikipedia - www.wikipedia.orgIBM Developer Works - www.ibm.com/developerworks/java/TechGig - www.techgig.comGitHub - www.github.comJava documentation - docs.oracle.com/javase/Coursera - www.coursera.org/JavaWorld - www.javaworld.com/Read More

ABAP constants with %_ as prefix

Nancy Den

Nancy Den

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

358 Views

The constants with a value of %_ as prefix are defined in ABAP for its internal use of the system. These needs to be used as such and cannot be modified by the user.

Advertisements