Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Jai Janardhan
Page 3 of 4
Advantages and Disadvantages of the OSI Model
The advantages of the OSI model areIt is a generic model and acts as a guidance tool to develop any network model.It is a layered model. Changes are one layer do not affect other layers, provided that the interfaces between the layers do not change drastically.It distinctly separates services, interfaces, and protocols. Hence, it is flexible in nature. Protocols in each layer can be replaced very conveniently depending upon the nature of the network.It supports both connection-oriented services and connectionless services.The disadvantages of the OSI model areIt is purely a theoretical model that does not consider the availability of appropriate ...
Read MoreProtocol and Protocol Hierarchies
A protocol is a set of rules and conventions agreed upon and followed by the communicating entities for data communication. A protocol outlines the what, how and when of a communication.The three aspects of a protocol are −Syntax − It defines the format of data that is to be sent or received.Semantics − It defines the meaning of each section of bits that are transferred.Timings − It defines the time at which data is transferred as well as the speed at which it is transferred.Protocol HierarchiesMost networks are organized as a stack of layers, one on the top of another. ...
Read MoreConnection-Oriented Services
A connection-oriented service is one that establishes a dedicated connection between the communicating entities before data communication commences. It is modeled after the telephone system. To use a connection-oriented service, the user first establishes a connection, uses it and then releases it. In connection-oriented services, the data streams/packets are delivered to the receiver in the same order in which they have been sent by the sender.Connection-oriented services may be done in either of the following ways −Circuit-switched connection: In circuit switching, a dedicated physical path or a circuit is established between the communicating nodes and then data stream is transferred.Virtual circuit-switched ...
Read MoreComb Sort
The basic idea of comb sort and the bubble sort is same. In other words, comb sort is an improvement on the bubble sort. In the bubble sorting technique, the items are compared with the next item in each phase. But for the comb sort, the items are sorted in a specific gap. After completing each phase, the gap is decreased. The decreasing factor or the shrink factor for this sort is 1.3. It means that after completing each phase the gap is divided by 1.3.The complexity of Comb Sort TechniqueTime Complexity: O(n log n) for the best case. O(n^2/2^p) (p ...
Read MoreViewing field names or tables names of the forms in SAP Business One
It is possible that the older version of SAP B1 may not show you all the fields of all the forms. If you have the latest version, you should be able to see the data sources that are mapped to given field. You need to open the forms in SAP Business One Studio. There are a couple of methods to view fields. 1. In SAP Business One, go to TOOLS => select SAP B1 studio suite=>edit active form for Microsoft visual studio. This will open up the form in edit mode for Microsoft visual studio.2. You can directly use the Microsoft ...
Read MoreHow -Infinity is converted to Boolean in JavaScript?
Use the Boolean() method in JavaScript to convert to Boolean. You can try to run the following code to learn how to convert -Infinity to Boolean in JavaScript. Example Convert -Infinity to Boolean var myVal = -Infinity; document.write("Boolean: " + Boolean(myVal));
Read MoreHow to set the favicon size in CSS rather than HTML attributes?
A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size.You cannot add the size using CSS. The standards do not support adding Favicon size using CSS. Let’s add it using attributes,The result after adding Favicon above will be,
Read MorePassing array to method in Java
Just as you can pass primitive type values to methods, you can also pass arrays to methods. For example, the following method displays the elements in an int array -Examplepublic static void printArray(int[] array) { for (int i = 0; i < array.length; i++) { System.out.print(array[i] + " "); } }You can invoke it by passing an array. For example, the following statement invokes the print Array method to display 3, 1, 2, 6, 4, and 2 -printArray(new int[]{3, 1, 2, 6, 4, 2});
Read MoreWhat does the modifier volatile in Java do?
The volatile modifier is used to let the JVM understand that a thread accessing the variable should always merge its own personal copy of the variable with the original in the memory.Accessing a volatile variable synchronizes all the cached copy of the variables in the main memory. Volatile can only be applied to instance variables, which are of type object or private. A volatile object reference can be null.Examplepublic class MyRunnable implements Runnable { private volatile boolean active; public void run() { active = true; while (active) { } } public void stop() { active = false; } }
Read MoreUsing Breakpoint in SAP system
There is a problem with your code. Here is the correct syntaxSyntaxBREAK username.If you want to implement it for all the users you can just codeBREAK-POINT.
Read More