×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Jai Janardhan
has Published
98
Answers
How can we apply a NOT NULL constraint to a column of an existing MySQL table?
MySQLi
MySQL
Database
Jai Janardhan
Published on 16-Feb-2018 16:26:33
We can apply the NOT NULL constraint to a column of an existing MySQL table with the help of ALTER TABLE statement. SyntaxALTER TABLE table_name MODIFY colum_name datatype NOT NULL; Examplemysql> Create table test123(ID INT, Date DATE); Query OK, 0 rows affected (0.19 sec) mysql> Describe test123; +-------+---------+------+-----+---------+-------+ | Field ...
Read More
What are Lvalues and Rvalues in C++?
C++
Programming
Object Oriented Programming
Jai Janardhan
Published on 16-Feb-2018 14:41:59
An lvalue (locator value) represents an object that occupies some identifiable location in memory (i.e. has an address).rvalues are defined by exclusion. Every expression is either an lvalue or an rvalue, so, an rvalue is an expression that does not represent an object occupying some identifiable location in memory.For example, ...
Read More
What are literals in C++?
C++
Programming
Object Oriented Programming
Jai Janardhan
Published on 16-Feb-2018 11:45:32
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 ...
Read More
Trigraphs in C++
C++
Programming
Object Oriented Programming
Jai Janardhan
Published on 15-Feb-2018 17:49:44
The ISO-646 character set does not have all the characters of the C syntax, therefore there are some systems with keyboards and displays that cannot deal with some characters. These characters can be constructed using a sequence of 3 characters called trigraphs. In C, before any other processing takes place, ...
Read More
What are cin, cout and cerr streams in C++?
C++
Object Oriented Programming
Programming
Jai Janardhan
Published on 15-Feb-2018 16:03:11
cin, cout, cerr, and clog are streams that handle standard inputs and standard outputs. These are stream objects defined in iostream header file.std::cin is an object of class istream that represents the standard input stream oriented to narrow characters (of type char). It corresponds to the C stream stdin. The standard ...
Read More
What is the top IDE for c++ on Linux?
C++
Object Oriented Programming
Programming
Jai Janardhan
Published on 15-Feb-2018 12:56:10
Big projects are difficult to manage on mere text editors. You're likely to be more productive and less frustrated if you use an IDE in such cases. There are various types of IDE's and you should select the right one which fits your needs. Here's a list of best C/C++ ...
Read More
What is the correct way to check if String is empty in Java?
Java 8
Object Oriented Programming
Programming
Jai Janardhan
Published on 12-Feb-2018 11:47:32
We can verify whether the given string is empty using the isEmpty() method of the String class. This method returns true only if length() is 0.ExampleLive Demoimport java.lang.*; public class StringDemo { public static void main(String[] args) { String str = "tutorialspoint"; ...
Read More
Java substring() method example.
Java 8
Object Oriented Programming
Programming
Jai Janardhan
Published on 12-Feb-2018 11:14:01
This method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string or up to endIndex – 1, if the second argument is given.Example Live Demoimport java.io.*; public ...
Read More
Java String getBytes() method example.
Java 8
Object Oriented Programming
Programming
Jai Janardhan
Published on 12-Feb-2018 10:42:08
The getBytes() method encodes the current String into a sequence of bytes using the given charset, storing the result into a new byte array.ExampleLive Demoimport java.lang.*; public class StringDemo { public static void main(String[] args) { try { String str1 = "admin"; ...
Read More
String compare by equals() method in Java
Java 8
Object Oriented Programming
Programming
Jai Janardhan
Published on 12-Feb-2018 08:46:39
The equals() method of the String class compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object.Example Live Demopublic class Test { public static void ...
Read More
Previous
1
...
4
5
6
7
8
9
10
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout