Tutor profile: Jacob H.
Subject: Java Programming
Please explain what a singleton class is and why it is useful.
A singleton class is a class that only allows a single instance of itself to be created at any given time. It does this by making use of the fact that its constructor can be made private. It is useful for when you are dealing with a program that makes use of multiple threads and needs to access a shared resource.
Subject: Computer Science (General)
What is the difference between a weak-typed and a strong-typed language?
Subject: C Programming
How would you go about allocating and then deallocating memory to a pointer?
You would first allocate memory to a pointer with the 'malloc' method. Then to deallocate the memory set aside for this pointer, you then need to use the 'free' method.
needs and Jacob will reply soon.