George John has Published 1167 Articles

Learn Everything about Java String?

George John

George John

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

127 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 is it possible for a MySQL trigger to execute multiple statements?

George John

George John

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

684 Views

The MySQL trigger can execute multiple statements with the help of BEGIN…END construct. Within the BEGIN block, we can also use another syntax that is permitted within stored routines such as conditionals and loops. For illustrating the concept, we are using the following example of BEFORE INSERT TRIGGER is having ... Read More

Difference between static, auto, global and local variable in C++

George John

George John

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

3K+ Views

There are two separate concepts here − scope, which determines where a name can be accessed - global and local storage duration, which determines when a variable is created and destroyed - static and auto Scope Local variables can be used only by statements that are inside that ... Read More

How to Learn C++ Programming?

George John

George John

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

143 Views

So you've decided to learn how to program in C++ but don't know where to start. Here's a brief overview of how you can get started. Get a C++ Compiler This is the first step you'd want to do before starting learning to program in C++. There are good free ... Read More

Different C++ Versions

George John

George John

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

9K+ Views

There are a lot of versions of the C++ programming language. These versions of the language are implementations of compilers based on specifications constructed by the ISO C++ community, the community that oversees the development of the language. The following are the versions of the language − C++98 (ISO/IEC ... Read More

How can we delete all rows from a MySQL table?

George John

George John

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

1K+ Views

We can use either TRUNCATE statement or DROP statement to delete all the rows from the table. It can also be done with the help of DELETE statement but in that case WHERE clause must identify all the rows of the table. As we know that both TRUNCATE and DELETE ... Read More

What does the method removeElementAt(int index) do in java?

George John

George John

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

59 Views

The removeElementAt(int index) method is used to delete the component at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted downward to have an index one smaller than the value it had previously and the size of this vector ... Read More

Why is it not recommended to use the mixture of quoted as well as unquoted values in MySQL IN() function’s list?

George John

George John

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

53 Views

Actually, MySQL has different comparison rules for quoted values such as strings and unquoted values such as numbers. On mixing the quoted and unquoted values in IN() function list may lead to the inconsistent result set. For example, we must not write the query with IN() function like below − ... Read More

What is the scope of private access modifier in Java?

George John

George John

Updated on 30-Jul-2019 22:30:20

836 Views

The scope of the private modifier lies with in the class. Members that are declared private cannot be accessed outside the class. Private access modifier is the most restrictive access level. Class and interfaces cannot be private. Variables that are declared private can be accessed outside the class, if public ... Read More

What does the modifier transient in Java do?

George John

George John

Updated on 30-Jul-2019 22:30:20

153 Views

An instance variable is marked transient to point the JVM to skip the actual variable once serializing the thing containing it. This modifier is included in the statement that creates the variable, preceding the class or data type of the variable. Example public class Employee implements java.io.Serializable { ... Read More

Advertisements