Rishi Raj has Published 131 Articles

What is the difference between String s1 = "Hello" and String s1= new String("Hello") in java?

Rishi Raj

Rishi Raj

Updated on 19-Feb-2020 12:48:04

3K+ Views

When you store a String asString str1 = "Hello";directly, then JVM creates a String object with the given value in a separate block of memory known as String constant pool.And whenever we try to create another String asString str2 = "Hello";JVM verifies whether any String object with the same value ... Read More

What are Enumerated Constants in C++?

Rishi Raj

Rishi Raj

Updated on 11-Feb-2020 08:25:36

1K+ Views

An enumerated type declares an optional type name and a set of zero or more identifiers that can be used as values of the type. Each enumerator is a constant whose type is the enumeration. These are also called as enumerated constants.For example, if you are creating an application that ... Read More

What is C++ Standard Output Stream (cout)?

Rishi Raj

Rishi Raj

Updated on 10-Feb-2020 13:34:36

5K+ Views

std::cout is an object of class ostream that represents the standard output stream oriented to narrow characters (of type char). It corresponds to the C stream stdout. The standard output stream is the default destination of characters determined by the environment. This destination may be shared with more standard objects ... Read More

How to Install C++ Compiler on Linux?

Rishi Raj

Rishi Raj

Updated on 10-Feb-2020 12:20:50

2K+ Views

There are several alternatives for compiling C++ on Linux. Let's look at 2 of them −GCCAlmost all Linux distros come with GCC installed. Check whether GCC is installed on your system by entering the following command from the command line −$ g++ -vIf you have installed GCC, then it should ... Read More

How can we use INSERT() function to insert a new string into the value of a column of MySQL table?

Rishi Raj

Rishi Raj

Updated on 06-Feb-2020 06:31:51

108 Views

For this purpose, We need to use the name of the column as the first parameter i.e. at the place of an original string, of the INSERT() function. Following example will exhibit it −ExampleSuppose we want to add ‘/Old’ with the values of ‘year_of_admission’ column of ‘Student’ table then we ... Read More

Denormalization of dimension tables in InfoCube in SAP BW

Rishi Raj

Rishi Raj

Updated on 06-Dec-2019 06:54:17

137 Views

Note that In Data Warehouse, data load is less frequent as compared to data read. If you use normalized tables that result more number of joins and hence when you run multiple read statements on DW system, it effects the performance considerably.When you are not using normalized tables, the response ... Read More

Problem with division as output is either 0 or 1 when using ifthenelse condition in ABAP program

Rishi Raj

Rishi Raj

Updated on 05-Dec-2019 09:43:10

151 Views

The problem is that your second parameter is 0 which is an integer, so the output always comes as an integer as ifthenelse takes data type from the second parameter. So, in your case, if the answer is less than .5, it is converted to zeroes and in case more ... Read More

Finding minimum value across different columns in SAP HANA

Rishi Raj

Rishi Raj

Updated on 05-Dec-2019 09:20:19

345 Views

You need to use LEAST instead of min as below:“SELECT ID, LEAST(DAY_1, DAY_2, DAY_3) FROM ...” Please make sure that none of the values in your column in “NULL”.

Error while selecting into field-symbol in SAP ABAP

Rishi Raj

Rishi Raj

Updated on 05-Dec-2019 09:13:59

299 Views

The problem is that you have not declared Field-symbol. Try using the below code.data:  ws_bkpf      TYPE bkpf_type. SELECT MANDT    INTO CORRESPONDING FIELDS OF ws_mandt UP TO 1 ROWS    FROM bkpf    WHERE belnr = '1700001016'. ENDSELECT.

How to use JavaScript to redirect an HTML page?

Rishi Raj

Rishi Raj

Updated on 07-Oct-2019 08:08:32

2K+ Views

You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.It is quite simple to do a page redirect using JavaScript on the client side. To redirect your site visitors ... Read More

Previous 1 ... 4 5 6 7 8 ... 14 Next
Advertisements