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

Search the Tips
Tip Bank > Java > Classes


1-20 of 417     Previous     Next
Finding the Count of All Active Threads
by M S Sridhar
Language: Java, Expertise: Intermediate - Learn how to return the count of all the active threads in the current run time.
Underscore Numerals in Java
by M S Sridhar
Language: Java, Expertise: Intermediate - Using underscores for numerals is allowed in Java for better readability and representation.
How to Use Scanner to Receive Command Line Input
by M S Sridhar
Language: Java, Expertise: Intermediate - Scanner is a simple and easy-to-use utility provided by Java.
Understanding Optional
by M S Sridhar
Language: Java, Expertise: Intermediate - Get to know optional. This example can be fine-tuned as needed to explore all of the methods supported.
Java BlockingQueue
by M S Sridhar
Language: Java, Expertise: Intermediate - Learn how to effectively use BlockingQueue in Java.
Using String.join to Concatenate Strings
by M S Sridhar
Language: Java, Expertise: Intermediate - Learn to use this easy utility method in String class.
UUID in Java
by Sridhar M S
Language: Java, Expertise: Advanced - Learn to create a new random UUID.
Variable Argument Method
by M S Sridhar
Create an Instance of a Class Whose Name Will Be Supplied at Runtime
by Amar Gunda
Your Java program won't know which class to instantiate until it is executing. So how can you create an instance that class ahead of time?
Java Tip: Optimization Technique for Lists
by Deepak Tyagi
An ArrayList that is not initialized with the proper size can slow your Java application's performance.
Create an Interface from a Class in Visual Studio
by Srinath MS
Use Visual Studio's refactoring features to extract class methods into an interface.
A Quick Way to Generate Properties in Visual Studio C# Projects
by Srinath MS
Don't write property setters and getters by hand--generate them!
Obtain the Local Absolute Path of a Class File
This tip shows how to obtain the local absolute path of a class file containing the specified class name, as prescribed by the current classpath.
Using a Built-In Shortcut to Add Properties to a Class
by Bill Harmon
After declaring your class, suppose you want to add individual element properties to that class. This process has been simplified in Visual Studio when working in C#.
Make an Immutable Class
by Devesh Gote
The code in this tip shows how to make an immutable class.
Loading Classes Directly from .jar Archives
by Leonard Anghel
Find out how to make a custom class loader to load classes directly from your .jar archives.
Prevent Inheritance from a Base Class
by Venkata Edara
Use the code in this tip to avoid deriving from your base class.
Obtain Class Methods Using Reflection
by Leonard Anghel
Learn how to obtain all methods, all declared methods, and one specific method for the java.lang.reflect.Method class.
Override a Child Class' Parent Method
by Anthony Burke
Here's a workaround to override a child class' parent method with a more granular return type.
Extending the Existing CLR Type
by Naresh Rohra
With .NET 3.0, you can extend any existing CLR type by adding one or more public methods to it—without recompiling the library
1-20 of 417     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date