LATEST REVATURE – JAVA 2024-2025
QUESTIONS WITH 100% CORRECT ANSWERS
What kind of language is Java - CORRECT ANSWER object-oriented, strongly typed
What is the Garbage Collector - CORRECT ANSWER automatically track memory
allocation and know when to delete objects so you don't have to, thus preventing
memory leaks
write once, run anywhere. What does this mean in Java - CORRECT ANSWER Java
code can be run on any machine that exists a JVM
What is a JVM - CORRECT ANSWER Java Virtual Machine
What files to JVM take in? - CORRECT ANSWER .class files
What are .class files? - CORRECT ANSWER compiled java code
How are .class produced? - CORRECT ANSWER The java compiler, JavaC, complies
.java files
In order to develop in Java, what do developers need? - CORRECT ANSWER They
need the JDK which stands for 'Java Development Kit'
What is the JVM distributed as part of? - CORRECT ANSWER JRE = Java Runtime
Environment
, LATEST REVATURE – JAVA 2024-2025
QUESTIONS WITH 100% CORRECT ANSWERS
What are packages? - CORRECT ANSWER they are similar to departments of a
corporation or colleges of a university
In order to use packages, what must we do? - CORRECT ANSWER we must 'import'
them
How do you initiate a Garbage Collector? - CORRECT ANSWER System.gc()
In a Garbage Collector, which is more likely to be collected first? Newer Objects or Older
Objects - CORRECT ANSWER Newer Objects
When is a object eligible to be garbage-collected? - CORRECT ANSWER Once the
numbers of references drop to 0
What is Encapsulation - CORRECT ANSWER Keeps objects from accessing data they
don't need
What is Inheritance? - CORRECT ANSWER Objects can inherit qualities of other
objects
What is polymorphism? - CORRECT ANSWER Objects can look and fell like other
objects while behaving differently. Can also apply to methods
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Courseinstructor. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.