Chandu yadav has Published 1163 Articles

What is the difference between JspWriter and PrintWriter?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

148 Views

The JspWriter object contains most of the same methods as the java.io.PrintWriter class. However, JspWriter has some additional methods designed to deal with buffering. Unlike the PrintWriter object, JspWriter throws IOExceptions.

DoubleStream concat() method in Java

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

77 Views

The concat() method of the DoubleStream class creates a stream which is concatenated. The elements of the resultant stream are all the elements of the first stream followed by all the elements of the second stream.The syntax is as follows.static DoubleStream concat(DoubleStream streamOne, DoubleStream streamTwo)Here, streamOne is the first stream ... Read More

8086 program to add two 16-bit numbers with or without carry

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

17K+ Views

In this program we will see how to add two 16-bit numbers with and without carry.Problem StatementWrite 8086 Assembly language program to add two 16-bit number stored in memory location 3000H – 3001H and 3002H – 3003H.Discussion8086 is 16-bit register. We can simply take the numbers from memory to AX ... Read More

Difference between "new operator" and "operator new" in C++?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

886 Views

In C++ when we want to create a new object, we have to create a memory block into the memory, then also call constructor to initialize the memory block. We can create memory element by using the new keyword. This new operator is doing two consecutive task. But the operator ... Read More

How to write a procedure to insert data in the table in phpMyAdmin?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

372 Views

Let us first create a new table and understand the concept in continuationmysql> create table StoredProcedureInsertDemo    -> (    -> UserId int NOT NULL AUTO_INCREMENT PRIMARY KEY,    -> UserName varchar(20),    -> UserAge int    -> ); Query OK, 0 rows affected (0.63 sec)Here is the query to ... Read More

How do you limit an array sub-element in MongoDB?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

661 Views

You can use $slice operator to limit an array. Let us create a collection with documents. Following is the query> db.limitAnArrayDemo.insertOne( ...    { ...       _id: 101, ...       "PlayerName": "Bob", ...       "PlayerDetails": {Age:23, isStudent:true}, ...       "PlayerGameScores": [234, 5767, ... Read More

Set Decade value in JavaTuples

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

80 Views

To set a new value in the Decade Tuple, you need to use the setAtX() method. Here, X is the index wherein you want to set the value. For example, setAt2() sets the value at index 2. The value to be included is to be set as the value in ... Read More

How to check edit text's text is email address or not?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

136 Views

Before getting into example, we should know test scenario. In login page, usually we takes email id and pass word from edit text. While taking email id from editext. we should know, it is valid format or not.This example demonstrate about how to check edit text's text is email address ... Read More

What methods of session object is used frequently in JSP and for what purpose?

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

211 Views

Here is a summary of important methods available through the session object −Sr.No.Method & Description1public Object getAttribute(String name)This method returns the object bound with the specified name in this session, or null if no object is bound under the name.2public Enumeration getAttributeNames()This method returns an Enumeration of String objects containing ... Read More

Overloading stream insertion (<<) and extraction (>>) operators in C++

Chandu yadav

Chandu yadav

Updated on 30-Jul-2019 22:30:25

8K+ Views

C++ is able to input and output the built-in data types using the stream extraction operator >> and the stream insertion operator and insertion operator

Advertisements