New operator is used to create a new object of an existing class and associate the object with a variable that names it. Basically new operator instantiates a class by allocating memory for a new object and returning reference t...
Sunday, December 28, 2014
Monday, June 9, 2014
Managing indexes with pre-defined Query: SQL Server
In addition to creating indexes in sql server, database developer also need to maintain them to ensure their continued optimal performance. The common index maintenance tasks include disabling, enabling, renaming, and dropping an...
How to Create Partition Scheme and Clustered Index: SQL Server
After creating the partition function, programmer needs to create a partition scheme to associate it with the partition function. Based on the boundary values defined in the partition function, there will be five partitions. The ...
How to Create Partitioned Indexes in SQL Server
In SQL Server, indexes can also be partitioned based on the value ranges. Similar to the partitioned tables, the partitioned indexes also improve query performance. Partitioning enables you to manage and access subsets of data qu...
Monday, May 26, 2014
How to Retrieve XML Data Using XQuery
In addition to FOR XML, SQL Server allows programmer to extract data stored in variables or columns with the XML data type by using XQuery. XQuery is a language that uses a set of statements and functions provided by the XML data...
How to Define Methods with Behavior: Java
Objects have behavior that is implemented by its methods. Other objects can ask an object to do something by invoking its methods. This section tells you everything you need to know about writing methods for your Java classes.
I...
How to Declare Member Variables in Classes: JAVA
A class’s state is represented by its member variables. You declare a class’s member variables in the body of the class. Typically, programmer declare a class’s variables before you declare its methods, although this is not requi...
Sunday, May 18, 2014
How to Declare Classes with Members: JAVA
In order to bring a class into existence in Java program, it should be declared. A class is declared using keyword class. The generic syntax for class declaration in Java is:
Class <class_name>{ Statements defining class co...
How to Implement Object Oriented Design in JAVA
The basic unit of object-orientation in Java is the class. The class is often is described as a blueprint for an object. You can think of an object as an entity having a unique identity, characteristics and behaviour. For instanc...
Null Statement and Character Manipulation in JAVA
In Java programs, statements are terminated with a semicolon (;). The simplest statement of them all is the empty, or null statement.
; it is a null statement
A null statement is useful in those instances where the syntax of the...
Type of Statements used in JAVA
Statements are roughly equivalent to sentences in natural languages. A statement forms a complete unit of execution. The following types of expressions can be made into a statement by terminating the expression with a semicolon (...
Tuesday, May 13, 2014
Expression Evaluation and Compound Expression in JAVA
As discussed in earlier articles, expressions can either be pure expressions or mixed expressions. Pure expressions have all operands of same datatypes, contrary to mixed expressions that have operands of mixed datatypes.
Evalua...
Type Conversion and its Types used in JAVA
An implicit type conversion is a conversion performed by the compiler without programmer’s intervention. An implicit conversion is applied generally whenever differing data types are intermixed in an expression (mixed mode expres...
Expressions and its types used in JAVA
An expressions is composed of one or more operations. The objects of the operation(s) are referred to as operands. The operations are represented by operators. Therefore, operators, constants, and variables are the constituents o...
Sunday, May 4, 2014
Operator Precedence and Associativity to Evaluate Expression: JAVA
Operator precedence determines the order in which expressions are evaluated. This, in some cases, can determine the overall value of the expression. For example, take the following expression:
Y = 6 + 4/2
Depending on whethe...
Other Remaining Operators used in JAVA Programming
All other remaining operators except assignment operators are listed in this article. Like instance of, shift operators, bitwise and many more described with example in the article.
The following table lists the other operators ...
Assignment and Shorthand Assignment Operators used in JAVA with Example
Java provides some assignment and shorthand operators listed in the article with example of each. The article also explains a table with all these assignment operators provided by JAVA Programming.
Like other programming languag...
Sunday, April 27, 2014
Solve Decision-Making Expression using Logical Operators in JAVA
Relational operators often are used with logical operators (also known as conditional operators sometimes) to construct more complex decision-making expression. The Java programming language supports six conditional operators-fiv...
Compare Values using Relational Operators in JAVA
In the term relational operator, relational refers to the relationships that values (or operands) can have with one another. Thus, the relational operators determine the relation among different operands.
Java provides six relat...
Thursday, March 13, 2014
How to use Default Constraint on Column in SQL
A default constraint can be used to assign a constant value to a column, and the user need not insert value for such a column. Only one default constraint can be created for a column but the column cannot be an identity column. T...