Ayyan has Published 52 Articles

Are there any ways to Manipulate Strings in Java.

Ayyan

Ayyan

Updated on 26-Feb-2020 05:11:31

98 Views

Since String class is immutable once created we cannot modify the data of the string. But still, if you want to manipulate string data you can rely on StringBuffer or StringBuilder classes.Examplepublic class Test {    public static void main(String args[]) {       String str = "Hi welcome ... Read More

What is the Java Runtime Environment (JRE)?

Ayyan

Ayyan

Updated on 25-Feb-2020 08:19:34

309 Views

JRE is Java Runtime Environment and is the machine-specific implementation of JVM. It contains libraries like rt.jar, class loaders etc which are used by JVM.

Memory management in Java

Ayyan

Ayyan

Updated on 24-Feb-2020 09:18:49

556 Views

Java memory model is divided between Thread Stacks (One for each thread) and a heap area.Thread StackIt is a thread specific memory area and contains local variables, methods call information etc. JVM stacks could be of fixed size or variable size. If computation in a thread exceeds its stack size ... Read More

How Can MySQL virtual GENERATED COLUMNS work with built-in functions?

Ayyan

Ayyan

Updated on 21-Feb-2020 11:39:09

203 Views

It can be illustrated with the help of an example in which we are creating a virtual generated column in the table named ‘employee_data’. As we know that virtual generated column can be generated with or without using the keyword ‘virtual’.Examplemysql> Create table employee_data(ID INT AUTO_INCREMENT PRIMARY KEY,     ... Read More

ABAP dump while creating an entry in SAP system using SAP JCO

Ayyan

Ayyan

Updated on 14-Feb-2020 05:43:45

314 Views

This seems to be a problem at ABAP side and not Java side. This is an ABAP dump and you need to useTransaction code: ST22 on ABAP backend to check functional module inSAP system.Once you get the exact details of ABAP dump you are getting, you need to edit the ... Read More

C++ Program Structure

Ayyan

Ayyan

Updated on 11-Feb-2020 05:49:42

838 Views

The best way to learn a programming language is by writing programs. Typically, the first program beginners write is a program called "Hello World", which simply prints "Hello World" to your computer screen. Although it is very simple, it contains all the fundamental components C++ programs have. Let's look at ... Read More

How can we use MySQL REVERSE() function on column’s data along with WHERE clause?

Ayyan

Ayyan

Updated on 07-Feb-2020 10:45:56

211 Views

MySQL REVERSE() function can have the column name as an argument to invert its value. If we want to apply some condition/s then it can be used along with WHERE clause as follows:Examplemysql> Select Name, REVERSE(Name) from Student; +---------+---------------+ | Name    | REVERSE(Name) | +---------+---------------+ | Aarav   | ... Read More

What MySQL TRIM() function returns if 1st argument(i.e. BOTH, LEADING, TRAILING) is not specified?

Ayyan

Ayyan

Updated on 07-Feb-2020 05:56:07

49 Views

By default MySQL will assume the argument BOTH if the 1st argument is not specified in TRIM() function. Following example will demonstrate it.Examplemysql> SELECT TRIM('A' FROM 'ABCDAEFGAA'); +-----------------------------+ | TRIM('A' FROM 'ABCDAEFGAA') | +-----------------------------+ | BCDAEFG                     | +-----------------------------+ 1 row ... Read More

Which MySQL function returns a specified number of characters of a string as output?

Ayyan

Ayyan

Updated on 06-Feb-2020 10:52:19

329 Views

MySQL returns a specified number of characters of a string with the help of LEFT() and RIGHT() functions.MySQL LEFT() function will return the specified number of characters from the left of the string.SyntaxLEFT(str, length)Here str is the string from which a number of characters would be returned and the length ... Read More

What MySQL ASCII() function returns if I will provide NULL to it?

Ayyan

Ayyan

Updated on 30-Jan-2020 06:41:55

69 Views

In this case, the output of ASCII() function depends on the condition that whether we are providing NULL as a string or we are providing simply NULL to it. Following example will demonstrate the difference −mysql> SELECT ASCII(null); +-------------+ | ASCII(null) | +-------------+ | NULL        | +-------------+ ... Read More

Advertisements