100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Java Interview Review Questions and Answers $11.49   Add to cart

Exam (elaborations)

Java Interview Review Questions and Answers

 12 views  0 purchase
  • Course
  • Java developer
  • Institution
  • Java Developer

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 ...

[Show more]

Preview 3 out of 18  pages

  • August 4, 2024
  • 18
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Java developer
  • Java developer
avatar-seller
ExamArsenal
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?

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 ExamArsenal. 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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80467 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.49
  • (0)
  Add to cart