Swap Two Variables in One Line in Java

Samual Sam
Updated on 30-Jul-2019 22:30:23

5K+ Views

Two variables can be swapped in one line in Java. This is done by using the given statement. x = x ^ y ^ (y = x); where x and y are the 2 variables. A program that demonstrates this is given as follows − Example Live Demo public class Example { public static void main (String[] args) { int x = 12, y = 25; System.out.println("Original values of x and y"); System.out.println("x = " ... Read More

First Generation (1G) Mobile Phones

Samual Sam
Updated on 30-Jul-2019 22:30:23

9K+ Views

Wireless cellular technology or mobile communications started with first generation mobile phones, popularly known as 1G. It was an analog telecommunications system, introduced in 1979 and continued to mid of the 1980s. History 1G mobile communication system was introduced in Japan in 1979 by Nippon Telegraph and Telephone (NTT). Initially, it started in Tokyo and within next five years expanded to cover the whole of Japan. In 1981, Nordic Mobile Telephone (NMT) was launched in European countries. In 1983, Ameritech launched 1G mobiles in the USA using Motorola mobile phones. Use of mobile communication system was then followed by several ... Read More

Check Visibility of Virtual Keyboard on Android

Ankith Reddy
Updated on 30-Jul-2019 22:30:23

1K+ Views

There are some situations, we should find keyboard is visible or not in particular activity. In this example we can check visibility of virtual keyboard on 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.             Step 3 − Add the following code to src/MainActivity.javaimport android.graphics.Rect; import android.os.Build; import android.os.Bundle; import android.support.annotation.RequiresApi; import android.support.constraint.ConstraintLayout; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.view.ViewTreeObserver; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; public ... Read More

Improved Mobile Telephone System

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

735 Views

Improved Mobile Telephone System (IMTS) was a radio system that linked to public switched telephone networks (PSTN) before the era of cellular mobiles. It was introduced in 1964 and was the wireless equivalent of landline dial up telephones. Features IMTS was a radio system for mobile telephones that was an improvement over the previous Mobile Telephone System (MTS). MTS supported half duplex communication. So, the communicating parties could not communicate simultaneously. IMTS supported full duplex communication, thus allowing both the user to talk and hear simultaneously. IMTS required a high power transmitter to be installed, preferably on the ... Read More

Data Over Cable Service Interface Specification (DOCSIS)

Samual Sam
Updated on 30-Jul-2019 22:30:23

664 Views

Data over cable service interface specification (DOCSIS) is an international telecommunications standard to provide high speed data to cable TV system over its existing hybrid fiber-coaxial (HFC) infrastructure. It is used for providing cable Internet access as well as supporting high definition televisions. Versions of DOCSIS DOSCIS 1.0 − It was the first version for cable modem system DOSCIS 2.0 − It enhanced upstream data from computer to the operator to allow services requiring equal data transfer in both uplink and downlink, like IP telephony. DOSCIS 3.0 − It supports IPv6 standard. It is marked by increase in transmission ... Read More

Circuit Switched vs Packet Switched Networks

Samual Sam
Updated on 30-Jul-2019 22:30:23

5K+ Views

Definitions Circuit Switched Networks − Circuit switched networks are connection-oriented networks. Here, a dedicated route is established between the source and the destination and the entire message is transferred through it. Packet Switched Networks − Packet switched networks are connectionless networks. Here, the message is divided and grouped into a number of units called packets that are individually routed from the source to the destination. Comparisons Differences with respect to technology Serial Number Circuit – Switching Packet – Switching 1 It is a connection oriented network switching technique. It is a connectionless network switching technique. ... Read More

Frequency Division Duplex

Samual Sam
Updated on 30-Jul-2019 22:30:23

3K+ Views

Frequency division duplex (FDD) is a communication technique where the connected parties can communicate with each other in both directions through use of separate frequency bands for transmitting and receiving. Since FDD uses different frequency bands for upstream data and downstream data, the sending and the receiving signals do not interfere with each other. FDD in Cellular Networks Cellular networks use FDD to separate the channels. One block of the electromagnetic spectrum is allocated for uplink, which carries data from mobile phones to a base station. A different block of the spectrum is allocated to downlink, carrying data ... Read More

Network Interface Device

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

2K+ Views

A network interface device (NID), also called network interface unit (NIU), is an interface between the network provider's local loop and the customer. These are present as grey boxes outside customer's premises, where the data wires of the phone company or the network provider ends and the customer's wiring begins. Diagrammatic Representation Features NID demarcates between provider's connection and customer's connection. Maintenance of wiring of the local loop up to the NID is the responsibility of the phone provider, while maintenance of wiring from the NID to the customer premises is the responsibility of the customer. NID protects ... Read More

Second Generation (2G) Mobile Phones

karthikeya Boyini
Updated on 30-Jul-2019 22:30:23

9K+ Views

Second generation (2G) mobile phones switched from analog system of 1G to digital system. It was commercially launched in 1991 as GSM standard in Finland. As with 1G phones, 2G phones didn’t have any worldwide standardizations. 2G systems were also known as personal communications services (PCM). Advantages of 2G over 1G It allows voice signals to be digitized and compressed. So, they are more efficient on frequency spectrum than 1G. They introduced data services for mobile in form of SMS text messaging. Data and voice signals are digitally encrypted. So, security against eavesdropping and fraud increased manifold. Digital signals ... Read More

Cable, ADSL, and Fiber Comparison

Samual Sam
Updated on 30-Jul-2019 22:30:23

775 Views

Definitions Cable − Cable network is a system of providing varied services like television programming, FM programming, Internet and telephone services over existing cable TV network. ADSL − Asymmetric Digital Subscriber Line (ADSL) is a type of broadband communications technology to transmit digital data at a high bandwidth on existing phone lines to homes and businesses. Fiber − Fiber or Fiber to the home (FTTH) is a technology to deploy optical fibers in the local loop of the telephone networks to the users home for providing high-speed data connectivity. Comparisons Wires Cable − They use the copper coaxial ... Read More

Advertisements