Skip to content

What is leaking int arrays in my program?

I have Java program that, over about 16 hours, is slowly filling the heap with integer arrays that the GC is not getting rid of. I only have VisualVM available to diagnose the problem, which is how I found that it’s int[] that is filling the heap. Any ideas how I can find the source of the int[] creatio…

Generating Random Number of Characters

I have to create a program that reads in the number of character to be printed, and it will print random chars (a-z, A-Z, 0-9 and characters like !, &, $, etc). And the first character to be printed cannot be a number (0-9). So an example output would be like: Length of Variable? 20 a5fTnO$akP_a12BahsiO T…

SELECT inside an UPDATE query

I’m trying to select a inner table while running an update, but I keep receiving an syntax error can anyone see what I’m doing wrong Thanks. Answer You need to write your SELECT as an assignment from a subquery (enclosed in parentheses), and also specify the table you are selecting the value from: