Java
WebServices
Spring
SQL
Really Random Questions
100

What is Encapsulation?

The hiding of instance members by making them private and providing public getters and setters. 

100

What does REST stand for?

REpresentational State Transfer

100

What is Spring?

Spring is a java framework or bean factory that manages our beans for us.

100

What is SQL?

SQL stands for Structured Query Language. SQL lets you access and manipulate databases. 

100

Name two US territories ?

Puerto Rico 

Guam

American Samoa 

Northern Mariana Islands

U.S. Virgin Islands 

200

What is inheritance?

The mechanism by which a new class derives is properties and methods from the super classes. 


This can help increase code reuse by allowing similar classes to get fields and methods from one parent class. 

200

Common HTTP Methods

GET

PUT

DELETE

POST

OPTIONS

200

What is a Bean factory ?

A factory to manage the majority of our objects in our application. 

200

Are SQL queries cases sensitive?

SQL are NOT case sensitive: select is the same as SELECT

200

What movie or movies win the most Oscars?

TITANIC (1997),

 BEN HUR (1959), 

THE LORD OF THE RINGS: THE RETURN OF THE KING (2003)

300

What is Abstraction?

The hiding of implementation details and complexity/behavior, only displaying the essential information to the user. 

300

What does GET do?

Provides a read only access to a resource. 

300
Cons of dependency injection?

They are Harder to trace

300

What is CRUD?

Create

Select

Update 

Delete

300

Is a avocado a vegetable or a fruit?

Fruit

400

What is Polymorphism?

The ability for methods and classes to take on various forms throughout the life of a project. 

400

What does PUT do?

Used to create a new resource.

400

How many bean scopes are supported by Spring?

5

400

What does DISTINCT keyword do?

The SELECT DISTINCT statement is used to return only distinct (different) values. Inside a table, a column often contains many duplicate values; and sometimes you only want to list the different (distinct) values.

400

Is a hamburger considered a sandwich?

Yes-A hamburger (also called a beef burger, hamburger sandwich, burger or hamburg) is a sandwich consisting of one or more cooked patties of ground meat, usually beef, placed inside a sliced bun. 

500

What is Casting?

Explicitly converting one type of object to another type. Larger objects must be casted into smaller objects whereas smaller objects do not need to be. 

500

What does POST do?

Used to update an existing resource or create a new resource. 

500

What are the different bean scopes?

Singleton

Prototype

Request

Session

Global session

500

What is a primary key?

A primary key is a combination of fields which uniquely specify a row. This is a special kind of unique key, and it has implicit NOT NULL constraint. It means, Primary key values cannot be NULL.

500

How old is Bank of America?

About 22 years old.