Enable contrast version

Tutor profile: Jacob H.

Inactive
Jacob H.
Tutor for 1.5 years, 4 Years as an experienced programmer
Tutor Satisfaction Guarantee

Questions

Subject: Java Programming

TutorMe
Question:

Please explain what a singleton class is and why it is useful.

Inactive
Jacob H.
Answer:

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)

TutorMe
Question:

What is the difference between a weak-typed and a strong-typed language?

Inactive
Jacob H.
Answer:

An example of a weak-typed language is javascript. In javascript, there is no need to specify the data-type of the variable when declaring. This is compared to a strong-typed language like java where you need to specify the type when declaring the variable.

Subject: C Programming

TutorMe
Question:

How would you go about allocating and then deallocating memory to a pointer?

Inactive
Jacob H.
Answer:

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.

Contact tutor

Send a message explaining your
needs and Jacob will reply soon.
Contact Jacob

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.
BEST IN CLASS SINCE 2015
TutorMe homepage
Made in California by Zovio
© 2013 - 2020 TutorMe, LLC
High Contrast Mode
On
Off