Rishi Raj has Published 118 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

2K+ 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

How to Install C++ Compiler on Linux?

Rishi Raj

Rishi Raj

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

4K+ 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

216 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

231 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

239 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

649 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

422 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

How to use JavaScript to hide a DIV when the user clicks outside of it?

Rishi Raj

Rishi Raj

Updated on 18-Sep-2019 08:30:50

1K+ Views

To hide a div when the user clicks outside of it, try to run the following codeExampleLive Demo                    window.onload = function(){             var hideMe = document.getElementById('hideMe');             document.onclick = function(e){                if(e.target.id !== 'hideMe'){                   hideMe.style.display = 'none';                }             };          };             Click outside this div and hide it.    

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