Vikyath Ram has Published 178 Answers

Java sql.Time valueOf() method with example

Vikyath Ram
Published on 09-May-2019 10:44:59
The valueOf() method of the java.sql.Time class accepts a String value representing a time in JDBC escape format and converts the given String value into Time object.Time time = Time.valueOf("time_string");ExampleLet us create a table with name dispatches in MySQL database using CREATE statement as follows −CREATE TABLE dispatches(    ProductName ... Read More

Java sql.Time toString() method with example

Vikyath Ram
Published on 09-May-2019 10:42:43
The toString() method of the java.sql.Time class returns the JDBC escape format of the time of the current Time object as String variable.i.e. using this method you can convert a Time object to a String.//Retrieving the Time object Time timeObj = rs.getTime("DeliveryTime"); //Converting the Time object to String format String ... Read More

Java sql.Time setTime() method with example

Vikyath Ram
Published on 09-May-2019 10:39:29
The setTime() method of the java.util.Time class accepts a variable of long type, representing the number of milliseconds from the epoch time (January 1, 1970 00:00:00.000 GMT) to the required time, and sets the specified time value to the current Time object//Setting time time.setTime(time_value_in_long);ExampleLet us create a table with name ... Read More

Package extension utility in Python

Vikyath Ram
Published on 08-May-2019 14:44:49
When you want to add to the module search path for a specific package and work with resources included in a package, you need to use pkgutil module from Python library. It includes functions for changing the import rules for Python packages. It is also possible to load non-code resources ... Read More

FTP protocol client in Python

Vikyath Ram
Published on 08-May-2019 14:35:20
The all important The FTP class in ftplib module implements the client side of the FTP protocol.To establish connection with a FTP server, obtain FTP object.con=FTP(hostname)The FTP class supports following methods −connect()Connect to the given host and port. The default port number is 21, as specified by the FTP protocol ... Read More

Token Passing in Bit-Map Protocol

Vikyath Ram
Published on 08-May-2019 10:44:08
Bit-map protocol is a collision free protocol that operates in the Medium Access Control (MAC) layer of the OSI model. It resolves any possibility of collisions while multiple stations are contending for acquiring a shared channel for transmission. In this protocol, if a station wishes to transmit, it broadcasts itself ... Read More

Bit-Map Protocol

Vikyath Ram
Published on 08-May-2019 10:27:01
Bit-map protocol is a collision free protocol that operates in the Medium Access Control (MAC) layer of the OSI model. It resolves any possibility of collisions while multiple stations are contending for acquiring a shared channel for transmission.In this protocol, if a station wishes to transmit, it broadcasts itself before ... Read More

Multi-access Channels and Random Access Channels

Vikyath Ram
Published on 08-May-2019 09:06:46
Multi-access ChannelsMulti-access channels are network channels that allow several transmitters to communicate with a common receiver via a shared channel. These channels are also called multiple access (MAC) channels. The network channel may be a single cable or optical fiber connecting multiple nodes, or a portion of the wireless spectrum.Random ... Read More

How to using string writer append in android?

Vikyath Ram
Published on 21-Mar-2019 09:58:43
This example demonstrate about how to using string writer append in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools" ... Read More

How to use Synchronized list in android listview?

Vikyath Ram
Published on 21-Mar-2019 09:53:06
This example demonstrate about How to use Synchronized list in android listview.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"   ... Read More
Advertisements