Nishtha Thakur has Published 568 Articles

How to read/parse JSON array using Java?

Nishtha Thakur

Nishtha Thakur

Updated on 31-Oct-2023 14:38:33

46K+ Views

A Json array is an ordered collection of values that are enclosed in square brackets i.e. it begins with ‘[’ and ends with ‘]’. The values in the arrays are separated by ‘, ’ (comma).Sample JSON array{    "books": [ Java, JavaFX, Hbase, Cassandra, WebGL, JOGL] }The json-simple is a ... Read More

High-level Data Link Control (HDLC)

Nishtha Thakur

Nishtha Thakur

Updated on 31-Oct-2023 04:57:51

94K+ Views

High-level Data Link Control (HDLC) is a group of communication protocols of the data link layer for transmitting data between network points or nodes. Since it is a data link protocol, data is organized into frames. A frame is transmitted via the network to the destination that verifies its successful ... Read More

Pure Virtual Functions and Abstract Classes in C++

Nishtha Thakur

Nishtha Thakur

Updated on 07-Oct-2023 02:39:22

21K+ Views

A pure virtual function is a virtual function in C++ for which we need not to write any function definition and only we have to declare it. It is declared by assigning 0 in the declaration. An abstract class is a class in C++ which have at least one pure ... Read More

Convert an int to ASCII character in C/C++

Nishtha Thakur

Nishtha Thakur

Updated on 05-Oct-2023 00:50:13

26K+ Views

In C or C++ the character values are stored as ASCII values. To convert int to ASCII we can add the ASCII of character ‘0’ with the integer. Let us see an example to convert int to ASCII values. Example #include int intToAscii(int number) {    return '0' + number; ... Read More

Difference between void main and int main in C/C++

Nishtha Thakur

Nishtha Thakur

Updated on 13-Sep-2023 15:36:59

30K+ Views

Sometimes we use int main(), or sometimes void main(). Now the question comes into our mind, that what are the differences between these two.The main() function is like other functions. It also takes arguments, and returns some value. One point we have to keep in mind that the program starts ... Read More

What is the use of cin.ignore() in C++?

Nishtha Thakur

Nishtha Thakur

Updated on 02-Sep-2023 13:01:37

54K+ Views

The cin.ignore() function is used which is used to ignore or clear one or more characters from the input buffer.To get the idea about ignore() is working, we have to see one problem, and its solution is found using the ignore() function. The problem is like below.Sometimes we need to ... Read More

What is volatile keyword in C++?

Nishtha Thakur

Nishtha Thakur

Updated on 01-Sep-2020 09:58:48

11K+ Views

Here we will see what is the meaning of volatile qualifier in C++. The volatile qualifier is applied to a variable when we declare it. It is used to tell the compiler, that the value may change at any time. These are some properties of volatile.The volatile keyword cannot remove ... Read More

Uninitialized primitive data types in C/C++

Nishtha Thakur

Nishtha Thakur

Updated on 27-Aug-2020 13:56:42

195 Views

One of the most frequent question is what will be the value of some uninitialized primitive data values in C or C++? Well the answer will be different in different systems. We can assume the compiler will assign 0 into the variables. It can be done for integer as 0, ... Read More

Use CSS max-width property responsive for video player

Nishtha Thakur

Nishtha Thakur

Updated on 04-Jul-2020 06:18:01

454 Views

You can try to run the following code to use a max-width property to make your video player responsive −ExampleLive Demo                          video {             max-width: 100%;             height: auto;          }                                                     To check the effect, you need to resize the browser.    

How to make an Android status bar notification persist across phone reboot?

Nishtha Thakur

Nishtha Thakur

Updated on 03-Jul-2020 11:54:06

306 Views

This example demonstrate about How to make an Android status bar notification persist across phone rebootStep 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 ... Read More

1 2 3 4 5 ... 57 Next
Advertisements