Difference Between Serial and Parallel Transmission

Kiran Kumar Panigrahi
Updated on 13-Sep-2023 15:46:37

37K+ Views

The process of sending data between two or more digital devices is known as data transmission. Data is transmitted between digital devices using one of the two methods − serial transmission or parallel transmission.In serial transmission, data bits are sent one after the other across a single channel. Parallel data transmission distributes numerous data bits through various channels at the same time.What is Serial Transmission?A serial transmission transfers data one bit at a time, consecutively, via a communication channel or computer bus in telecommunication and data transmission. On the other hand, parallel communication delivers multiple bits as a single unit ... Read More

Split String with Comma in Java

karthikeya Boyini
Updated on 13-Sep-2023 15:45:12

34K+ Views

Let’s say the following is our string.String str = " This is demo text, and demo line!";To split a string with comma, use the split() method in Java.str.split("[,]", 0);The following is the complete example.Example Live Demopublic class Demo {     public static void main(String[] args) {        String str = "This is demo text, and demo line!";        String[] res = str.split("[,]", 0);        for(String myStr: res) {           System.out.println(myStr);        }     } }OutputThis is demo text and demo line!

Difference Between Paging and Segmentation

Mahesh Parahar
Updated on 13-Sep-2023 15:44:24

37K+ Views

PagingPaging is a memory management technique in which process address space is broken into blocks of the same size called pages (size is power of 2, between 512 bytes and 8192 bytes). The size of the process is measured in the number of pages. Similarly, main memory is divided into small fixed-sized blocks of (physical) memory called frames and the size of a frame is kept the same as that of a page to have optimum utilization of the main memory and to avoid external fragmentation.Similarly, main memory is divided into small fixed-sized blocks of (physical) memory called frames and ... Read More

Retrieve an Element from ArrayList in Java

Arjun Thakur
Updated on 13-Sep-2023 15:42:52

27K+ Views

An element can be retrieved from the ArrayList in Java by using the java.util.ArrayList.get() method. This method has a single parameter i.e. the index of the element that is returned.A program that demonstrates this is given as followsExample Live Demoimport java.util.ArrayList; import java.util.List; public class Demo { public static void main(String args[]) throws Exception { List aList = new ArrayList(); aList.add("James"); aList.add("George"); aList.add("Bruce"); aList.add("Susan"); ... Read More

Add Background Music to Your Web Page

Vikyath Ram
Updated on 13-Sep-2023 15:40:09

36K+ Views

To add background music on a web page, use … element. Also, use the autoplay attribute. This will run music in the background whenever the page loads.Set the width and height in a way the player hides on the web page. The loop attribute is added to specify whether the audio will start over again. Add the music file to the server and mention the link in src attribute.ExampleYou can try to run the following code to add background music to your web page:Live Demo           HTML background music             ... Read More

Pass Object as Parameter in JavaScript Function

Shubham Vora
Updated on 13-Sep-2023 15:33:27

34K+ Views

In this tutorial, we will learn how to pass an object as a parameter in a JavaScript function. One of JavaScript's data types is represented by the Object type. It is used to store keyed collections as well as more complex entities. The Object() function Object()or the object initializer / literal syntax can be used to create objects. Almost all JavaScript objects are instances of Object; a typical object inherits properties (including methods) from Object.prototype, though these properties may be shadowed (a.k.a. overridden). Following are the methods used to pass an object as a parameter in a JavaScript function. Using the ... Read More

Difference Between High-Level Language and Low-Level Language

Kiran Kumar Panigrahi
Updated on 13-Sep-2023 15:23:37

36K+ Views

A language is basically a mode of communication, because it is used to share information, ideas, and opinions. In computer systems, programming languages are used by the software developers or programmers to creates applications or software systems. A programming language provides a way of writing computer instructions that are used to perform a specific task. Examples of computer programming languages include C, C++, Java, Python, Ruby, Scala, Perl, C#, Groovy, Dart, etc. Based on the closeness of a programming language to the system hardware (mainly processor), computer programming languages are classified into two categories namely, high-level languages and low-level languages. ... Read More

Class Variables, Instance Variables, and Local Variables in Java

Ali
Ali
Updated on 13-Sep-2023 15:19:58

44K+ Views

A variable provides us with named storage that our programs can manipulate. Java provides three types of variables. Class variables − Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. There would only be one copy of each class variable per class, regardless of how many objects are created from it. Instance variables − Instance variables are declared in a class, but outside a method. When space is allocated for an object in the heap, a slot for each instance variable value is created. ... Read More

Build a Website Using Python

Vikram Chiluka
Updated on 13-Sep-2023 15:15:21

38K+ Views

In this article, we will discuss whether Can we code a website from Python and a step-by-step process to code a website in Python Can we code a website from python? Yes, you can build a website with Python - pretty easily, in fact. Although Python is a general-purpose programming language, it easily adapts itself to web development. Python web development is feasible due to "frameworks, " which are pre-built packages of Python code that serve as the foundation, or structure, for your website. Why should we create a website with Python? Generally, web development falls under the domain of ... Read More

Array Copy in Java

Samual Sam
Updated on 13-Sep-2023 15:09:03

30K+ Views

Array in Java can be copied to another array using the following ways.Using variable assignment. This method has side effects as changes to the element of an array reflects on both the places. To prevent this side effect following are the better ways to copy the array elements.Create a new array of the same length and copy each element.Use the clone method of the array. Clone methods create a new array of the same size.Use System.arraycopy() method.  The arraycopy() can be used to copy a subset of an array.ExampleCreate a java class named Tester.Tester.javaLive Demopublic class Tester {    public ... Read More

Advertisements