
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Vikyath Ram has Published 138 Articles

Vikyath Ram
12K+ Views
To extract last n characters, simply print (length-n)th character to nth character using the charAt() method.ExampleLive Demopublic class ExtractingCharactersFromStrings { public static void main(String args[]) { String str = "Hi welcome to tutorialspoint"; int n = 5; int initial = str.length()-5; for(int i=initial; i

Vikyath Ram
790 Views
Declare an integer, initialize it with 0, in for loop increment it for each character.ExampleLive Demopublic class Sample { public static void main(String args[]) { String str = new String("Hi welcome to Tutorialspoint"); int count = 0; for(int i = 0; i

Vikyath Ram
345 Views
You can concatenate two Strings using the concat() method.ExampleLive Demopublic class ConcatinatedStrings { public static void main(String args[]) { String str1 = new String("Tutorials"); String str2 = new String( "Point"); String res = str1.concat(str2); System.out.println(res); } }OutputTutorialsPoint

Vikyath Ram
3K+ Views
While adding columns to an existing table with the help of ALTER command we can specify the default value also.SyntaxAlter table table-name ADD (column-name datatype default data);ExampleIn the example below, with the help of ALTER Command, column ‘City’ is added with default value ‘DELHI’ to the table ‘Student’.mysql> Alter table ... Read More

Vikyath Ram
448 Views
The relationship between parent and child table is One-to-Many relationship. It can be understood with the example of two tables named ‘customer’ and ‘orders’. Here, ‘customer’ is the parent table and ‘orders’ is the child table. The relationship is one-to—many because a customer can have more than one order. It ... Read More

Vikyath Ram
156 Views
To set the outline color, use the outlineColor property. You can try to run the following code to set the color of the outline around an element with JavaScript:ExampleLive Demo #box { width: ... Read More

Vikyath Ram
967 Views
The temporary tables are session specific. So you would require to use truncate instead of delete as followstruncate table #temptable;Also, could you please check your release? In the recent releases, delete also works fine. Here is an example:Drop table #temptable; Create local temporary table #temptable(id integer, str nvarchar(30)); Insert into ... Read More

Vikyath Ram
3K+ Views
Please follow the steps below to make it functional.First, open the screen painterNow, double click on the button you want to make functionalAbove “Context Menu Form", you will find a field to enter Functional code where you enter the functional code.This will convert your button to functional trigger theOK code ... Read More

Vikyath Ram
541 Views
This can be done by using UNION or UNION ALL operator as followsselect id, Empl_name, DeptId from table1 union select id, Empl_name, DeptId from table2 The difference between UNION and UNION ALL is that UNION removes the duplicates while UNION ALL shows duplicates as well.