George John has Published 1167 Articles

Opcode Fetch (OF) machine cycle in 8085 Microprocessor

George John

George John

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

10K+ Views

The OF machine cycle are constituted by the four clock cycles shown in the figure below. Here in these four clock cycles we execute opcode fetch, decode, and complete the execution. Moreover, in the instructions of 2- and 3-byte, and also in the instructions of 1 byte like ‘MOV B, ... Read More

How to use simple volley request in android?

George John

George John

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

1K+ Views

This example demonstrate about How to use simple volley request 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.     In the ... Read More

Create a database in MySQL from Java?

George John

George John

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

2K+ Views

The following is the code to create a database in MySQL from Java. We are creating the database with name, “Customer_Tracker_Database”import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; public class CreateDatabaseDemo {    public static void main(String[] args) {       Connection con=null;       Statement stmt=null;       ... Read More

Is PHP deg2rad() equal to MySQL radians()?

George John

George John

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

70 Views

Yes, both of these methods convert a degree value to radian. Let us create a table to understand MySQL radians. The query to create a table is as followsmysql> create table RadiansDemo    - > (    - > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY,    - > Value ... Read More

IntStream max() method in Java

George John

George John

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

768 Views

The IntStream max() method in the Java IntStream class is used to get the maximum element from the stream. It returns an OptionalInt describing the maximum element of this stream, or an empty optional if this stream is empty.The syntax is as followsOptionalInt max()Here, OptionalInt is a container object which ... Read More

I/O Read (IOR) machine cycle in 8085 Microprocessor

George John

George John

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

4K+ Views

The three clock cycles at the last stages in the IN 35H instruction is an example of machine cycle for IOR. The Waveforms for the IOR machine cycle are shown in the figure below.The point to be noted that in an IOR machine cycle, Wand Z has identical has port ... Read More

How to order by date and time in MySQL?

George John

George John

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

1K+ Views

You need to use ORDER BY clause for this. Let us first create a table. The query to create a table is as followsmysql> create table OrderByDateThenTimeDemo - > ( - > Id int NOT NULL AUTO_INCREMENT PRIMARY KEY, ... Read More

How to programmatically take a screenshot in android?

George John

George John

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

2K+ Views

This example demonstrate about how to programmatically take a screenshot 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.         ... Read More

DoubleStream limit() method in Java

George John

George John

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

51 Views

The limit() method of the DoubleStream class returns a stream consisting of the elements of this stream, truncated to be no longer than max in length. The max is a parameter of the limit() method.The syntax is as followsDoubleStream limit(long max)Here, max is the number of elements the stream should ... Read More

Merits of I/O-mapped I/O and demerits of memory-mapped I/O

George John

George John

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

1K+ Views

Before having a discussion regarding the merits of I/O mapped I/O and demerits of memorymapped 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 ... Read More

Advertisements