
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Samual Sam has Published 2310 Articles

Samual Sam
271 Views
With this, get the milliseconds in days, hours and minutes. At first, set the Duration −Duration d1 = Duration.ofDays(20); Duration d2 = Duration.ofHours(100); Duration d3 = Duration.ofMinutes(150);Convert the above Duration to nanoseconds −System.out.println("Milliseconds in 20 days = "+d1.toMillis()); System.out.println("Milliseconds in 100 hours = "+d2.toMillis()); System.out.println("Milliseconds in 150 minutes = "+d3.toMillis());Example Live ... Read More

Samual Sam
574 Views
An easily readable description of the provider and its services can be obtained using the method getInfo() in the class java.security.Provider. This method requires no parameters and it returns a provider and services description.A program that demonstrates this is given as follows −Example Live Demoimport java.security.*; import java.util.*; public class Demo ... Read More

Samual Sam
4K+ Views
When there is more than one user who desires to access a shared network channel, an algorithm is deployed for channel allocation among the competing users. Static channel allocation is a traditional method of channel allocation in which a fixed portion of the frequency channel is allotted to each user, ... Read More

Samual Sam
54 Views
An immutable copy of a LocalTime with the hour altered as required is done using the method withHour() in the LocalTime class in Java. This method requires a single parameter i.e. the hour that is to be set in the LocalTime and it returns the LocalTime with the hour altered ... Read More

Samual Sam
298 Views
To select timestamp as date string in MySQL, the syntax is as follows −select FROM_UNIXTIME(yourColumnName, '%Y-%m-%d %H:%i:%s') from yourTableName;To understand the above syntax, let us create a table. The query to create a table is as follows −mysql> create table select_timestampDemo -> ( -> Id int NOT NULL ... Read More

Samual Sam
88 Views
The list of different units that are supported by a duration can be obtained using the method getUnits() in the Duration class in Java. This method requires no parameters and it returns the list of different units that are supported by a duration.A program that demonstrates this is given as ... Read More

Samual Sam
324 Views
Let us first create a Java List and add elements −ArrayList < String > list = new ArrayList < String > (); list.add("Katie"); list.add("Tom"); list.add("Jack"); list.add("Amy"); list.add("Andre"); list.add("Brad"); list.add("Peter"); list.add("Bradley");Now, use ListIterator and return the next element in the List with next() −ListIteratoriterator = list.listIterator(); iterator.next();Replace the element in the ... Read More

Samual Sam
244 Views
The version number of the provider can be obtained using the method getVersion() in the class java.security.Provider. This method requires no parameter and it returns the version number of the provider as required.A program that demonstrates this is given as follows −Example Live Demoimport java.security.*; import java.util.*; public class Demo { ... Read More

Samual Sam
3K+ Views
Dynamic channel allocation are schemes for allotting shared network channels to competing users in a dynamic manner as per their requirements. The users may be base stations, access points or terminal equipment which are allotted channels from a central pool. There are a number of methods for dynamic channel allocation. ... Read More

Samual Sam
214 Views
An immutable copy of a instant where some milliseconds are added to it can be obtained using the plusMillis() method in the Instant class in Java. This method requires a single parameter i.e. the number of milliseconds to be added and it returns the instant with the added milliseconds.A program ... Read More