Set JAVA_HOME for Java in Linux

Ayyan
Updated on 30-Jul-2019 22:30:21

263 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

Search Data from MySQL Table Based on Similar Sound Values

Sai Subramanyam
Updated on 30-Jul-2019 22:30:21

128 Views

With the help of SOUNDS LIKE operator, MySQL search the similar sound values from the table. Syntax Expression1 SOUNDS LIKE Expression2 Here, both Expression1 and Expression2 will be compared based on their English pronunciation of sound. Example Following is an example from ‘student’ table which will match the two expressions based on the pronunciation of sound mysql> Select Id, Name, Address, Subject from student where name sounds like 'hrst'; +------+---------+---------+----------+ | Id | Name | Address | Subject | +------+---------+---------+----------+ | 15 | Harshit | Delhi | Commerce | +------+---------+---------+----------+ 1 row in set (0.00 sec)

Set JAVA_HOME for Java in Mac OS

Manikanth Mani
Updated on 30-Jul-2019 22:30:21

715 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

Type of String Literals in C and C++

Lakshmi Srinivas
Updated on 30-Jul-2019 22:30:21

824 Views

In C the type of a string literal is a char[]. In C++, an ordinary string literal has type 'array of n const char'. For example, The type of the string literal "Hello" is "array of 6 const char". It can, however, be converted to a const char* by array-to-pointer conversion.Note that Array-to-pointer conversion results in a pointer to the first element of the array.

Configuring Java Environment on Linux

Ayyan
Updated on 30-Jul-2019 22:30:21

353 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'Assuming you have stored your Java programs in \usr\local\myprograms\ directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export CLASSPATH=\usr\local\myprograms'.

Access Columns in Row Affected by a Trigger Using OLD and NEW Keywords

Sai Subramanyam
Updated on 30-Jul-2019 22:30:21

955 Views

As we know that in trigger definition, we can refer to columns of the row being inserted, updated or deleted. Following are the ways OLD and NEW keywords enable us to access columns − We must have to prefix the column name with a qualifier of OLD to refer to a value from the original row. We must have to prefix the column name with a qualifier of NEW to refer to a value in the new row. Now, the use of OLD and NEW must be done appropriately because the triggering event Determines which of them are ... Read More

What Does the Method copyOf(int original, int newLength) Do in Java

Sai Subramanyam
Updated on 30-Jul-2019 22:30:21

253 Views

The copyOf (int[] original, int newLength) method of the java.util.Arrays class copies the specified array, truncating or padding with zeros (if necessary) so the copy has the specified length. For all indices that are valid in both the original array and the copy, the two arrays will contain identical values. For any indices that are valid within the copy however not the original, the copy can contain zero. Such indices will exist if and only if the specified length is greater than that of the original array. Example import java.util.Arrays; public class ArrayDemo { public ... Read More

Learn Everything About Java String

George John
Updated on 30-Jul-2019 22:30:21

292 Views

The String class represents character strings. All string literals in Java programs, such as "abc", are implemented as instances of this class. Strings are constant, their values cannot be changed after they are created. To learn more about Strings visit Tutorialspoint Strings page.

How Many Keywords Are There in C++

Rishi Raj
Updated on 30-Jul-2019 22:30:21

4K+ Views

There are a total of 95 reserved words in C++. The reserved words of C++ may be conveniently placed into several groups. In the first group, we put those that were also present in the C programming language and have been carried over into C++. There are 32 of these.There are another 30 reserved words that were not in C, are therefore new to C++There are 11 C++ reserved words that are not essential when the standard ASCII character set is being used, but they have been added to provide more readable alternatives for some of the C++ operators, and ... Read More

Pass JavaScript Variables to PHP

Johar Ali
Updated on 30-Jul-2019 22:30:21

21K+ Views

You can easily get the JavaScript variable value on the same page in PHP. Try the following codeL. var res = "success";

Advertisements