Nancy Den has Published 330 Articles

Among all 4 JDBC driver types, when to use which driver?

Nancy Den

Nancy Den

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

119 Views

If you are accessing one type of database, such as Oracle, Sybase, or IBM, the preferred driver type is 4.If your Java application is accessing multiple types of databases at the same time, type 3 is the preferred driver.Type 2 drivers are useful in situations, where a type 3 or ... Read More

Can we create a table with a space in name in MySQL?

Nancy Den

Nancy Den

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

3K+ Views

To create a table with a space in the table name in MySQL, you must use backticks otherwise you will get an error.Let us first see what error will arise by creating a table with a space in the name i.e. “Demo Table” table name below:mysql> create table Demo Table ... Read More

Program to convert Primitive Array to Stream in Java

Nancy Den

Nancy Den

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

178 Views

To convert Primitive Array to Stream, you need to use the of() method.Let’s say the following is our Primitive Array:int[] myArr = new int[] { 20, 50, 70, 90, 100, 120, 150 };Now, use the of() method to convert the primitive array to stream:IntStream stream = IntStream.of(myArr);The following is an ... Read More

Period withYears() method in Java

Nancy Den

Nancy Den

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

121 Views

An immutable copy of a Period with the number of years as required is done using the method withYears() in the Period class in Java. This method requires a single parameter i.e. the number of years in the Period and it returns the Period with the number of years as ... Read More

Period withDays() method in Java

Nancy Den

Nancy Den

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

163 Views

An immutable copy of a Period with the number of days as required is done using the method withDays() in the Period class in Java. This method requires a single parameter i.e. the number of days in the Period and it returns the Period with the number of days as ... Read More

Instant isBefore() method in Java

Nancy Den

Nancy Den

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

166 Views

It can be checked if a particular Instant object is before the other Instant object in a timeline using the isBefore() method in the Instant class in Java. This method requires a single parameter i.e. the Instant object that is to be compared. It returns true if the Instant object ... Read More

Instant isAfter() method in Java

Nancy Den

Nancy Den

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

146 Views

It can be checked if a particular Instant object is after the other Instant object in a timeline using the isAfter() method in the Instant class in Java. This method requires a single parameter i.e. the Instant object that is to be compared. It returns true if the Instant object ... Read More

Demerits of I/O-mapped I/O and merits of memory-mapped I/O

Nancy Den

Nancy Den

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

665 Views

Before having a discussion regarding the demerits of I/O mapped I/O and merits of memory-mapped I/O, let us have a generic discussion regarding the difference between I/O mapped I/O and memory mapped I/O.In Memory Mapped Input Output −We allocate a memory address to an Input-Output device.Any instructions related to memory ... Read More

C++ Program to Implement the Rabin-Miller Primality Test to Check if a Given Number is Prime

Nancy Den

Nancy Den

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

885 Views

Rabin-Miller Primality Test is used to check if a given Number is Prime or not. It is similar to the format primality and the Solovay-Stressen test. this test first was discovered by Russian Mathematician M. M. Artjuhov.AlgorithmBegin    ll mulmod(ll a, ll b, ll m)    ll x = 0, ... Read More

I/O-mapped I/O or memory-mapped I/O in 8085 Microprocessor

Nancy Den

Nancy Den

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

6K+ Views

Before having a discussion regarding the demerits or merits of I/O mapped I/O and memory-mapped I/O, let us have a generic discussion regarding the difference between I/O mapped I/O and memory mapped I/O.In Memory Mapped Input Output −We allocate a memory address to an Input-Output device.Any instructions related to memory ... Read More

Advertisements