Why is using a wild card with a Java import statement bad??

It is much more convenient and cleaner to use a single statement like import java.awt.*; than to import a bunch o...

how to count the seconds in java??

I'm trying to understand how I could go about keeping track of the seconds that an object has been created for. The...

Difference between javacore, thread dump and heap dump in Websphere?

Can someone tell me the exact difference between javacore, thread dump and heap dump? Under which situation each of ...

How to read a specific line using the specific line number from a file in Java??

In Java, is there any method to read a particular line from a file? For example, read line 32 or any other line numb...

Error Launching Idea. Failed to load JVM DLL C:\Program Files\Java\jdk1.8.0_112?

Whenever I open IntelliJ IDEA i get this error: but I have that defined and I don't know why it wont work: Any...

Live audio stream java?

I am implementing live streaming from MIC to java server at another PC. But I am only hearing a white noise. I have...

Using Java to send key combinations?

As per this previous link (How to send keyboard outputs) Java can simulate a key being pressed using the Robot class...

How do I convert the date from one format to another date object in another format without using any deprecated classes??

I'd like to convert a date in date1 format to a date object in date2 format. SimpleDateFormat simpleDateFormat ...

Best Image Scaling Library?

I have searched and found a few image scaling libraries for Java. But not sure which one to go with. I need to gener...

Chatting in Java??

I am a Java beginner. I googled for one week for the solution. Now I'm posting this question. I want to develop a ch...

Getting the default root directory in Java?

I'm making a basic file browser, and want to know how to get the default root directory. I know that java.io.File.li...

when exactly are we supposed to use “public static final String”??

I have seen much code where people write public static final String mystring = ... and then just use a value. Why d...

How can I call .NET code from Java??

I'm not looking for the usual answer like Web-services. I'm looking for a light solution to be run in the same machi...

Java equivalent of SecureString?

I'm looking for Java's equivalent of .NET's SecureString.aspx. Is there such implementation available in 2018? OWAS...