Jai Janardhan

Jai Janardhan

40 Articles Published

Articles by Jai Janardhan

Page 4 of 4

What is the default type of a hexadecimal value in MySQL?

Jai Janardhan
Jai Janardhan
Updated on 11-Feb-2020 268 Views

As we know that in numeric contexts the hexadecimal values act like integers and in string contexts they act like binary string. It can be understood with the help of the following example,mysql> Select X'5455544F5249414C53504F494E54'; +---------------------------------+ | X'5455544F5249414C53504F494E54' | +---------------------------------+ | TUTORIALSPOINT                  | +---------------------------------+ 1 row in set (0.07 sec)But, if we are talking about default type of hexadecimal value in MySQL, then it is a string.

Read More

What are literals in C++?

Jai Janardhan
Jai Janardhan
Updated on 11-Feb-2020 791 Views

A literal is any notation for representing a value within the source code. They just exist in your source code and do not have any reference a value in memory. Contrast this with identifiers, which refer to a value in memory.There are several types of literals in C++. Some of the examples of literals are −"Hello" (a string)3.141 (a float/double)true (a boolean)3 (an integer)'c' (a character)Things that are not literals −bar = 0; (a statement)3*5-4 (an expression)std::cin (an identifier)

Read More

What are the different wildcard characters which can be used with NOT LIKE operator?

Jai Janardhan
Jai Janardhan
Updated on 07-Feb-2020 222 Views

As we know that NOT LIKE operator is used along with WILDCARD characters for not getting the string having specified string. Basically, WILDCARD is the characters that help search data matching complex criteria. Followings are the types of wildcard which can be used in conjunction with NOT LIKE operator:% - The PercentageThe ‘%’ wildcard is used to specify a pattern of 0, 1 or more characters. A basic syntax for using % wildcard with NOT LIKE operator is as follows:Select Statement…Where column_name NOT LIKE ‘X%’Here X is any specified starting pattern such as the single character of more and % matches ...

Read More

How can we change the default MySQL database to the given database?

Jai Janardhan
Jai Janardhan
Updated on 05-Feb-2020 580 Views

Suppose currently we are using a tutorial database so it would be the default MySQL database for subsequent queries. Now, with the help of USE db_name statement, we can change the default database to other given database subsequent queries.mysql> USE Sample Database changedThe database has been changed to Sample from the tutorial. To verify this we can run the following command −mysql> select database(); +------------+ | database() | +------------+ | sample     | +------------+ 1 row in set (0.00 sec)

Read More

Finding and modifying Service File for SAP system in root directory

Jai Janardhan
Jai Janardhan
Updated on 31-Jan-2020 797 Views

You can find it in %SystemRoot%\system32\drivers\etc where %SystemRoot% is generally your C:\ drive.To modify this file, you can right-click and open this file in Edit mode in Notepad. To perform this you should have Administrator rights in the system.

Read More

remove null value from a String array in Java

Jai Janardhan
Jai Janardhan
Updated on 30-Jul-2019 4K+ Views

Following program creates an array with null values. Convert it a list with not-null values only and then get the array of that list.Exampleimport java.util.ArrayList; import java.util.List; public class Tester { public static void main(String[] args) { String[] array = {"I", null, "love", null, "Java" }; List values = new ArrayList(); for(String data: array) { if(data != null) { values.add(data); } } String[] target = values.toArray(new String[values.size()]); for(String data: target) { System.out.println(data + " "); } } }OutputI love Java

Read More

Why java is both compiled and interpreted language.

Jai Janardhan
Jai Janardhan
Updated on 30-Jul-2019 905 Views

Yes, a java program is first compiled into bytecode which JRE can understand. ByteCode is then interpreted by the JVM making it as interpreted language.

Read More

Regular Expressions syntax in Java Regex

Jai Janardhan
Jai Janardhan
Updated on 30-Jul-2019 315 Views

Following is a simple program demonstrating how to use regular expression in Java. Java Regex Characters

Read More

What is the package for String Class in Java?

Jai Janardhan
Jai Janardhan
Updated on 30-Jul-2019 5K+ Views

String class belongs to the java.lang package.

Read More

What is string constant pool in Java?

Jai Janardhan
Jai Janardhan
Updated on 30-Jul-2019 971 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 exists in the String constant pool, if so, instead of creating a new object JVM assigns the reference of the existing object to the new variable.And when we store String asString str = new String("Hello");using the new keyword, a new object with the given value is created irrespective of the ...

Read More
Showing 31–40 of 40 articles
« Prev 1 2 3 4 Next »
Advertisements