Flat Preloader Icon

Socket Programming in Java

This article describes a very basic one-way Client and Server setup where a Client connects, sends messages to the server and the server shows them using a socket connection. There’s a lot of low-level stuff that needs to happen for these things to work but the Java API networking package (java.net) takes care of all … Read more

Difference Connection-oriented & less

Applications of UDP: Both Connection-oriented service and Connection-less service are used for the connection establishment between two or more two devices. These types of services are offered by the network layer. Connection-oriented service is related to the telephone system. It includes connection establishment and connection termination. In a connection-oriented service, the Handshake method is used … Read more

URL Class in Java with Examples

URL known as Uniform Resource Locator is simply a string of text that identifies all the resources on the Internet, telling us the address of the resource, how to communicate with it, and retrieve something from it. Components of a URL A URL can have many forms. The most general however follows a three-components system … Read more

User Datagram Protocol (UDP)

User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of the Internet Protocol suite, referred to as UDP/IP suite. Unlike TCP, it is an unreliable and connectionless protocol. So, there is no need to establish a connection prior to data transfer. The UDP helps to establish low-latency and loss-tolerating connections establish … Read more

TCP/IP Model

The OSI Model we just looked at is just a reference/logical model. It was designed to describe the functions of the communication system by dividing the communication procedure into smaller and simpler components. TCP/IP was designed and developed by the Department of Defense (DoD) in the 1960s and is based on standard protocols. It stands … Read more

Java Networking

When computing devices such as laptops, desktops, servers, smartphones, and tablets and an eternally-expanding arrangement of IoT gadgets such as cameras, door locks, doorbells, refrigerators, audio/visual systems, thermostats, and various sensors are sharing information and data with each other is known as networking. In simple words, the term network programming or networking associates with writing … Read more

JSP

What is jsp? JSP, which stands for JavaServer Pages, is a technology used for building dynamic web applications in Java. It allows developers to create web pages that can generate dynamic content and interact with databases, making it a fundamental component of web development in Java. key aspects of JSP Dynamic Web Pages: JSP enables … Read more

Difference Thread.start() & run()

In Java’s multi-threading concept, start() and run() are the two most important methods. Below are some of the differences between the Thread.start() and Thread.run() methods: New Thread creation: When a program calls the start() method, a new thread is created and then the run() method is executed. But if we directly call the run() method … Read more

What does start() fun in multithreading?

We have discussed that Java threads are typically created using one of the two methods : (1) Extending thread class. (2) Implementing Runnable In both the approaches, we override the run() function, but we start a thread by calling the start() function. So why don’t we directly call the overridden run() function? Why always the … Read more

Thread.sleep() Method in Java

Thread Class is a class that is basically a thread of execution of the programs. It is present in Java.lang package. Thread class contains the Sleep() method. There are two overloaded methods of Sleep() method present in Thread Class, one is with one argument and another one is with two arguments. The sleep() method is … Read more