Rishi Raj has Published 141 Articles

Wide Area Network (WAN)

Rishi Raj

Rishi Raj

Updated on 31-Oct-2023 02:46:38

20K+ Views

A wide area network (WAN) is a computer network that covers a large geographical area comprising a region, a country, a continent or even the whole world. WAN includes the technologies to transmit data, image, audio and video information over long distances and among different LANs and MANs.The distinguishing features ... Read More

Design Issues for the Layers of Computer Networks

Rishi Raj

Rishi Raj

Updated on 12-Sep-2023 03:13:54

37K+ Views

A number of design issues exist for the layer to layer approach of computer networks. Some of the main design issues are as follows −ReliabilityNetwork channels and components may be unreliable, resulting in loss of bits while data transfer. So, an important design issue is to make sure that the ... Read More

Duplicating Objects using a Constructor in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:44:29

282 Views

A copy constructor can be used to duplicate an object in Java. The copy constructor takes a single parameter i.e. the object of the same class that is to be copied. However, the copy constructor can only be explicitly created by the programmer as there is no default copy constructor ... Read More

Pass long parameter to an overloaded method in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:41:58

2K+ Views

Method overloading in a class contains multiple methods with the same name but the parameter list of the methods should not be the same. One of these methods can have a long parameter in their parameter list.A program that demonstrates this is given as follows −Example Live Democlass PrintValues {   ... Read More

Role of Matcher.find(int) method in Java Regular Expressions

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:37:18

171 Views

The Matcher.find(int) method finds the subsequence in an input sequence after the subsequence number that is specified as a parameter. This method is available in the Matcher class that is available in the java.util.regex package.The Matcher.find(int) method has one parameter i.e. the subsequence number after which the subsequence is obtained ... Read More

Why variables are declared final in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:32:59

822 Views

A variable cannot be modified after it is declared as final. In other words, a final variable is constant. So, a final variable must be initialized and an error occurs if there is any attempt to change the value.A program that demonstrates a final variable in Java is given as ... Read More

Get current thread in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:30:48

11K+ Views

A thread can be created by implementing the Runnable interface and overriding the run() method.The current thread is the currently executing thread object in Java. The method currentThread() of the Thread class can be used to obtain the current thread. This method requires no parameters.A program that demonstrates this is ... Read More

Enumerate through the Vector elements in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:25:07

523 Views

The Vector elements can be traversed using the Enumeration interface. The method hasMoreElements( ) returns true if there are more elements to be enumerated and false if there are no more elements to be enumerated. The method nextElement( ) returns the next object in the enumeration.A program that demonstrates this ... Read More

How a Vector can be cloned in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:16:58

69 Views

A Vector can be cloned using the java.util.Vector.clone() method. This method does not take any parameters but returns a clone of the specified Vector instance as an object.A program that demonstrates this is given as follows −Example Live Demoimport java.util.Vector; public class Demo {    public static void main(String args[]) { ... Read More

Add elements at the middle of a Vector in Java

Rishi Raj

Rishi Raj

Updated on 30-Jun-2020 08:10:00

369 Views

Elements can be added in the middle of a Vector by using the java.util.Vector.insertElementAt() method. This method has two parameters i.e. the element that is to be inserted in the Vector and the index at which it is to be inserted. If there is an element already present at the ... Read More

1 2 3 4 5 ... 15 Next
Advertisements