Nancy Den has Published 335 Articles

What is AbstractCollection class in Java?

Nancy Den

Nancy Den

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

351 Views

The AbstractCollection class provides an implementation of the Collection interface. This is done to minimize the effort in the implementation of this interface.For an unmodifiable collectionExtend this class and provide implementations for the iterator and size methods.For modifiable collectionAdditionally override the add() method of the class. The iterator method returns ... Read More

What is a Virtual Circuit Identifier (VCID)?

Nancy Den

Nancy Den

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

3K+ Views

Virtual Circuit Identifier (VCID or VCI) is an identifier or label on any virtual circuit in a computer network that indicates where a data unit has to travel over the network.A virtual circuit (VC) is a technique by which data is transmitted over a packet switched network such that it ... Read More

How to create Octet Tuple in Java?

Nancy Den

Nancy Den

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

77 Views

An Octetclass is a Tuple of 8 element. It is in the JavaTuples library. Let us first see what we need to work with JavaTuples. To work with Octet class in JavaTuples, you need to import the following package.import org.javatuples.Octet;Note: Download JavaTuples Jar library to run JavaTuples program. If you ... Read More

Java Program to sort an array in alphabetical order

Nancy Den

Nancy Den

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

576 Views

Let us first create a string array:String[] strArr = new String[] { "r", "p", "v", "y", "s", "q" };Now, use the Arrays.sort() method to sort an array in alphabetical order. Here, we have set the order to be case insensitive:Arrays.sort(strArr, String.CASE_INSENSITIVE_ORDER);Exampleimport java.util.Arrays; public class Demo {    public static void ... Read More

ATM Adaptation Layer (AAL)

Nancy Den

Nancy Den

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

7K+ Views

In Asynchronous Transfer Mode (ATM) networks, the ATM Adaptation Layer (AAL) provides facilities for non-ATM based networks to connect to ATM network and use its services.AAL is basically a software layer that accepts user data, which may be digitized voice, video or computer data, and makes them suitable for transmission ... Read More

Java Program to format LocalTimeDate as BASIC_ISO_DATE format

Nancy Den

Nancy Den

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

293 Views

At first, set the date:LocalDateTime dateTime = LocalDateTime.of(2019, Month.SEPTEMBER, 6, 20, 10);Now, format the datetime as BASIC_ISO_DATE format:String str = dateTime.format(DateTimeFormatter.BASIC_ISO_DATE);Exampleimport java.time.LocalDateTime; import java.time.Month; import java.time.format.DateTimeFormatter; public class Demo {    public static void main(String[] args) {       LocalDateTime dateTime = LocalDateTime.of(2019, Month.SEPTEMBER, 6, 20, 10);     ... Read More

Java Program to create LocalDateTime from Clock

Nancy Den

Nancy Den

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

256 Views

At first, set the Clock:Clock clock = Clock.systemUTC();Now, create LocalDateTime:LocalDateTime dateTime = LocalDateTime.now(clock);Exampleimport java.time.Clock; import java.time.LocalDateTime; public class Demo {    public static void main(String[] args) {       Clock clock = Clock.systemUTC();       System.out.println("Clock = "+Clock.systemDefaultZone());       LocalDateTime dateTime = LocalDateTime.now(clock);       ... Read More

What are the important components of ODBC?

Nancy Den

Nancy Den

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

777 Views

Following are the main components of the ODBC architecture.Application: An application which communicates with the databases using ODBC functions is ODBC application.ODBC driver manager: Whenever an application calls a function of ODBC API to communicate with a database, the driver manager accepts and passes it to ODBC driver and accepts ... Read More

Create Octet Tuple using with() method in Java

Nancy Den

Nancy Den

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

53 Views

You can easily create Octet Tuple in Java using with() method. Let us first see what we need to work with JavaTuples. To work with Octet class in JavaTuples, you need to import the following package.import org.javatuples.Octet;Note: Download JavaTuples Jar library to run JavaTuples program. If you are using Eclipse ... Read More

Explain Single and multi-tire architectures of ODBC?

Nancy Den

Nancy Den

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

237 Views

Generally, ODBC architecture is of two types single-tier and multi-tier.Single-tier architectureThis is an ODBC architecture which involves single-tier ODBC drivers. In singletier ODBC architecture, the ODBC driver receives ODBC requests/calls from the application and directly interacts with database files. It passes the SQL commands corresponding to the received calls and ... Read More

Advertisements