Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Search the Tips
Tip Bank > Java > Classes

Classes - Page 3

41-60 of 434     Previous     Next
Modifying Member Variables Inside const Member Functions
by Amit Gupta
Declaring a member variable as mutable is not the only way to mark it as modifiable within a constant member function.
Class Members that Are Class Objects Must Be Objects of Previously Declared Classes
by Neelam Kalra
Find out why class members that are class objects must be objects of previously declared classes.
Build a Reusable AJAX Class
by Matthew Brichacek
Building a reusable AJAX class can help you eliminate some of the headaches when you're starting out.
Avoid Conflict when Using Dates
by Mamta Murthy
Using a Date class with both java.util and java.sql running can create conflict. Learn how to avoid this.
Prepare a Class Diagram in Visio Using Reverse Engineering
by Selva Kumari
Find out how to prepare a class diagram in Visio using reverse engineering.
Using Reflection to Execute Class Methods at Runtime
by MS Sridhar
Find out how to use reflection to execute class methods at runtime.
Write a Standalone Java Application Without a Main Method
by Sachin Kainth
Normally, you need a main method in a Java class if you want to run that class from the command line. However, there is a little trick that allows you to run one without a main method.
Structs with Care: Boxing
by Navin Varma
This tip helps guide you in deciding whether an object should be a class or a stuct.
Call a Private Method of a Class
by Ganesh Kumar
This tip shows you how to cheat the cheat the compiler and expose private information.
Use the Robot Class for Automatic Keyboard and Mouse Control
by Kameswari Sreedharan
The code uses the Robot class to give you automatic keyboard and mouse control.
Always Declare a Polymorphic Class' Copy Constructor as Private
by Furqan Shaikh
Always declare a polymorphic class' copy constructor as private—this becomes important when you want to use a class in a container class for cloning
Problem Instantiating a Class Instance in Its Own Constructor
by Saurabh Ramya
Find out how to workaround the problem that arises when you instantiate a class instance in its own constructor.
Use Reflection to Find Dynamic Class Information
by Jaya Nehru Kumar
Use the code in this tip to find informtation about a dynamic class.
Converting One Class Type to a Different Class Type
by Saurabh Ramya
Learn about two different methods you can use to convert objects between two different class types.
Stop Initializing and Assigning Values to the Base Class's Data Members
by Saurabh Ramya
Sick of initialzing and assigning values to the base class's data members? Absolve yourself of this responsibility by overloading the copy constructor and the assignment operator in the derived class.
Executing a Subprocess
by Lundholm Per
When executing a subprocess in Java, remember to read both the stdout and stderr from the process or it may be blocked.
Detect an Operator Overloading a Class
by Vishakha Vaidya
Define the operator globally so that it accepts all user defined types in order to detect an operator overloading a class without the source for the class.
Restrict the Types of Template Argument for a Template Class
by Saurabh Ramya
Find out how to use the Forwards template declaration to restrict the types of template arguments for a template class.
Tracking Elapsed Time
by Andrew Ling
This C++ class tracks elapsed time. The mark() method is called at a given point and the following methods retrieve the elapsed time between points, the total time, or the average time.
Use Local Classes to Implement Nested Functions in C++
by Saurabh Ramya
Find out how you can use local classes to simulate the effects of nested functions.
41-60 of 434     Previous     Next
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date