0% found this document useful (0 votes)
4 views4 pages

Papercard - Java Interview Guide - Boost Confidence - 240819

Uploaded by

mounaim.laghnimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Papercard - Java Interview Guide - Boost Confidence - 240819

Uploaded by

mounaim.laghnimi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

What is the WORA principle How can Java applications What is the difference What is the difference

for Java ? run on multiple platforms ? between the JRE and the between procedural
JDK ? programming and object-
oriented programming?

What is the purpose of What is polymorphism? What is encapsulation? What is the difference
abstraction in software How does Java support it? How does Java support it? between a mutable object
development ? and an immutable object ?

What is Coupling between What is Cohesion for a What is the difference What happens when an
Software Components ? Software Components ? between a class and an object is instantiated for the
How tight should the How Specialized should a object ? first time ?
relationship be ? Component be ?

What is the difference What is the difference What is an array? What is the difference
between a primitive type between autoboxing and between a StringBuilder
and an object ? unboxing? and a StringBuffer?
Procedural programming is Every platform that The WORA principle is Java is an object-oriented
a style of writing code that supports Java has its own possible because of the programming language that
executes a series of linear implementation of the JVM. Java Virtual Machine was released by Sun
procedures to produce a Java applications are (JVM). A virtual machine is Microsystems in 1995.
result. Object-oriented portable because every software that emulates a Unlike C++, it allowed
programming is a style of JVM adheres to a standard physical machine. In developers to write code
writing code that uses interface. The distribution traditional programming that could run on multiple
objects to encapsulate state package of the JVM and languages, code is platforms. This principle,
Mutability refers to the Encapsulation is a Polymorphism is a Abstraction is the act of
ability of an entity to change technique that encourages technique that encourages perceiving an entity from a
its state. An iPod is an abstraction by purposefully abstraction by allowing an narrow perspective. For
example of a mutable entity hiding information. For entity to assume multiple example, in the context of
because its contents example, the mechanical forms. For example, a education a person can be
frequently change. A vinyl details of a car engine are smartphone is polymorphic reduced to a student, and in
record is an example of an encapsulated behind a because it can assume the the context of employment
immutable entity because steering wheel and floor role of a camera, web a person can be reduced to
When an object is Java objects are built from Cohesion refers to an Coupling refers to the level
instantiated with the new a blueprint called a class. A entity’s level of focus. For of dependency that exists
keyword, the class file and class defines the name of example, a Swiss Army between two entities. For
all of its superclasses are an object, what type of knife is a low cohesion example, a cell phone
loaded into the JVM by the state the object has in the entity because it can do battery that is soldered to a
system class loader. After form of fields, and what multiple things, but it can’t motherboard is tightly
the one-time initialization of kind of behavior the object do them very well. A multi- coupled because neither
the class, the object is has in the form of methods. tool could never match the the battery nor the
A StringBuilder (and thread- An array is an object that The compiler can A primitive type is a fixed-
safe alternative can hold a fixed number of automatically convert size data type that is
StringBuffer) improves values of a single type. The primitive types into their predefined and reserved as
performance by modifying a capacity of an array is wrapper objects in a a keyword. Primitive types
mutable char[] buffer before defined when the array is process called autoboxing. serve as the building blocks
creating an immutable initialized, and its elements Conversely, the compiler for storing state in an
String instance. The can be accessed by a zero- can convert wrapper object. There are eight
immutable property of based index. Arrays are objects into their primitive primitive types: boolean,
How is a String different Why are enums superior to What is the difference
from a regular object ? String or Integer constants? between package-by-layer
and package-by-feature?
Classes and other Enums, short for Strings are unique objects
resources are organized enumerated types, are that are used to represent
into folders with unique special classes that text. String values can be
namespaces called represent a set of single- assigned without the use of
packages. Packages are instance constants. the new keyword, although
commonly organized by two Practical applications the compiler is actually
competing methodologies: include the days of the creating String objects
package-by-layer and week, the status levels of a internally. Strings can be

You might also like