Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > C++ > Coding

Coding - Page 4

61-80 of 525     Previous     Next
The standard functions isalpha(), isdigit(), isprint() etc., defined in the stan
by Danny Kalev
The .* and ->* operators enable you to call a member function without having to know the function's name. Remember, however, that when using these operators, you have to parenthesize the expression ...
Static and Object Initializers
by Mahesh Chulet
Two types of initialization blocks (anonymous blocks) can be used to initialize class or instance variables in Java.
Checking for Null After New
by Mahesh Chulet
In lot of places, I have seen developers doing a 'new' to instantiate a user-defined data type (Objects) and then later in the source code checking whether this new Object is referring to null or not ...
Don't forget that String may cause overhead for your app
by Ayan Bandopadhyay
String in Java is a constant object, which means by default it can ...
Understanding Stack Overflow
by Danny Kalev
The stack is a region of memory on which local automatic variables are created and function arguments are passed. The implementation allocates a default stack size per process. On modern operating ...
Checking to See If .class Files Are Corrupt
by Jose Bermejo
Here is a little tip to check if any of your .class files are ...
Call One Constructor from Another Constructor
by Deepak Pant
Constructor is a special kind of method which gets called automatically whenever the object is created. One class can have zero, 1 or more then ...
Managing the Hourglass
by Charles Gaddy
It can be very useful to have a central public function for manipulating ...
Avoid Redundant Inline Declarations
by Danny Kalev
Remember that functions defined inside the class definition are implicitly inline. Therefore, the inline keyword is redundant in the definition of the member function of the following ...
Controlling Debugging Information
by Indus Khaitan
Debugging is a core part of application development in Java. Programmers tend to use System.out.println & System.err.println in the code everywhere, which becomes ...
Be Careful Before Returning Mutable Objects Through Accessor Methods
by Deepak Pant
Accessor methods are those methods which provide access to the values stored in instance field. Mutable objects are those objects which providen certains methods which can change the instance data ...
Avoiding Confusion about an Import Statement
by Deepak Pant
Every source file in Java (.java file) contains one class. You can bundle a set of related classes into a package. Java provides "import" keyword, which is used to establish a reference to a class in ...
Use Select Case When Validating Sequential Steps
by Norm Fenlason
...
Invoking Overloaded Operators Explicitly
by Danny Kalev
The overloaded operator mechanism is "syntactic sugar" for ordinary function calls. You can always use the explicit name of an overloaded operator function to resolve ambiguities or document your ...
Functions Are Extern by Default
by Danny Kalev
Unless explicitly declared static, an ordinary function is implicitly declared extern in C and C++. For ...
Use ".equals" in Place of "=="
by C.V. Ram
Java provides two methods to test for equality: the == Operator and the .equals method. The .equals is implemented by all objects. Most programmers tend to use == for equality, especially those with ...
The pow() Function
by Danny Kalev
The Standard Library provides the pow() functions (declared in <math.h>) which takes two arguments of type double, x and y: double powl(double x, double ...
The calloc() Function
by Danny Kalev
The standard C library declares the function calloc() in as ...
Renaming a File
by Danny Kalev
To rename a file, use the standard function rename() (declared in <stdio.h>). This function takes two arguments of type const char *, the first of which is the old name and the second one is the ...
Implement Catch All Blocks for Robustness
by Deepak Pant
You can use Throwable class in catch block to ...
61-80 of 525     Previous     Next
Sitemap