100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Java Interview Review Questions and Answers

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
04-08-2024
Written in
2024/2025

What is the difference between an Interface and an Abstract class? ~ "An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods." CRUD ~ " Create, Retrieve, Update, Delete" "What is the technical name of the ""String"" part in the statement List<String>" ~ Generics Extends vs Implements ~ "A Java class may implement, and an interface may extend, any number of interfaces; however an interface may not implement an interface." What is a singleton? ~ "A singleton class is a design pattern that only allows a single instanciated instance of a class. You do this by making the constructor private and having a static method that ""getInstance"" that will be a pointer to a local copy. NOTE, in general it's NOT thread safe" .equals vs == ~ The .equals compares values and the == compares references. inner join vs left outer ~ An inline function is one for which the compiler copies the code from the function definition directly into the code of the calling function rather than creating a separate set of instructions in memory. Instead of transferring control to and from the fun Write SQL that will group all countries that more than more city. ~ "select countryCode, count(*) ""COUNT"" from group by countryCode having count > 2" Difference between Vector and ArrayList? ~ Vector is synchronized whereas arraylist is not. application serve

Show more Read less
Institution
Java Developer
Course
Java developer










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Java developer
Course
Java developer

Document information

Uploaded on
August 4, 2024
Number of pages
18
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Java Interview Review
Questions and Answers
What is the difference between an Interface and an Abstract class?


✓~ "An abstract class can have instance methods that implement a default behavior. An

Interface can only declare constants and instance methods, but cannot implement default

behavior and all methods are implicitly abstract. An interface has all public members and no

implementation. An abstract class is a class which may have the usual flavors of class

members (private, protected, etc.), but has some abstract methods."




CRUD


✓~ " Create, Retrieve, Update, Delete"




"What is the technical name of the ""String"" part in the statement List<String>"


✓~ Generics




Extends vs Implements


✓~ "A Java class may implement, and an interface may extend, any number of interfaces;

however an interface may not implement an interface."




What is a singleton?

,✓~ "A singleton class is a design pattern that only allows a single instanciated instance of

a class. You do this by making the constructor private and having a static method that

""getInstance"" that will be a pointer to a local copy. NOTE, in general it's NOT thread safe"




.equals vs ==


✓~ The .equals compares values and the == compares references.




inner join vs left outer


✓~ An inline function is one for which the compiler copies the code from the function

definition directly into the code of the calling function rather than creating a separate set of

instructions in memory. Instead of transferring control to and from the fun




Write SQL that will group all countries that more than more city.


✓~ "select countryCode, count(*) ""COUNT"" from world.city group by countryCode having

count > 2"




Difference between Vector and ArrayList?


✓~ Vector is synchronized whereas arraylist is not.




application server

, ✓~ "An application server is a server which provides software applications with services

such as security, data services, transaction support, load balancing, and management of

large distributed systems"




What is OOP


✓~ "Object-oriented programming (OOP) is a programming paradigm using ""objects"" -

data structures consisting of data fields and methods together with their interactions - to

design applications and computer programs. There are three main principals of oops which

are called Polymorphism, Inheritance and Encapsulation. Other parts include data

abstraction, messaging and modularity."




What is data abstraction? And what is it related to?


✓~ "OOP: abstraction is the process by which data and programs are defined with a

representation similar in form to its meaning (semantics), while hiding away the

implementation details. Abstraction tries to reduce and factor out details so that the

programmer can focus on a few concepts at a time"




What is encapsulation? And what is it related to?


✓~ OOP: A language mechanism for restricting access to some of the object's

components OR A language construct that facilitates the bundling of data with the methods

(or other functions) operating on that data




What is Ploymorphism? And what is it related to?

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Graders Chamberlian School of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
492
Member since
2 year
Number of followers
167
Documents
25150
Last sold
12 hours ago
Study Smart

Your one-stop resource for high-quality, exam-focused study materials. Here, you'll find expertly crafted summaries, past exam papers, notes, and assignments tailored to help you succeed in your courses. Every document is written with clarity, accuracy, and exam performance in mind—saving you hours of studying and helping you boost your grades. ✅ Clear and well-structured content ✅ Covers key exam topics and common questions ✅ Trusted by students for academic success ✅ Instant downloads and affordable prices Whether you're cramming for finals or just staying ahead in class, my materials are designed to make your studying smarter, not harder. Take a look around and get the edge you need!

Read more Read less
3.8

120 reviews

5
53
4
26
3
21
2
4
1
16

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions