- http://stackoverflow.com/questions/1137118/does-this-basic-java-object-pool-work
- http://www.javaworld.com/javaworld/jw-06-1998/jw-06-object-pool.html
- http://sourcemaking.com/design_patterns/object_pool/java
- The basic interface of the object pool should like this
- public interface ObjectPool<T> {
T borrowObject();
void returnObject(T borrowed);
} - http://commons.apache.org/pool/
Apart from coding and design interview questions, this page contains updates on my learnings with Java. It helps me organize my learning. Read about my future self here : https://siliconvalleystories.blogspot.com/
Sunday, 27 January 2013
How would you design an object pool in java ?
DBMS Interview Questions
- http://tuandao.info/html/career/SQL.pdf
- http://www.techinterviews.com/sql-interview-questions-and-answers
- create table branch
(branch_name char(15),
branch_city char(30) not null,
assets integer,
primary key (branch_name)) - insert into account
values ('A-9732', 'Perryridge', 1200) - delete from account
- select distinct branchname from loan
- select all branchname from loan
- Rename operation :
select customer_name, borrower.loan_number as loan_id, amount
from borrower, loan
where borrower.loan_number = loan.loan_number - select distinct customer_name
from borrower, loan
where borrower loan_number = loan.loan_number and
branch_name = 'Perryridge'
order by customer_name - Aggregate functions
- select branch_name, count (distinct
customer_name)
from depositor, account
where depositor.account_number = account.account_number
group by branch_name - Attributes in select clause outside aggregate functions must appear in group by clause
- Having clause
-
select branch_name, avg (balance)
from account
group by branch_name
having avg (balance) > 1200 - Predicates in the having clause are applied before forming groups and predicates in the where clause are applied before forming groups
- sd
- sd
- as
- select avg (balance)
from account where branch_name = 'Perryridge' - select count (distinct customer_name)
from depositor
- sd
Thursday, 24 January 2013
Design Patterns
- Decorator Pattern : This link contains all the reasons when to use and when not to use the decorator patterns and also comparisons with the GoF book.
Wednesday, 23 January 2013
SEDA Architecture
- http://sanjaydwivedi.blogspot.com/
- http://sanjaydwivedi.blogspot.com/2006/10/staged-event-driven-architecture-seda.html
- http://muratbuffalo.blogspot.com/2011/02/seda-architecture-for-well-conditioned.html
- http://www.codeproject.com/Articles/167917/Microsoft-Message-Queuing-A-Simple-Multithreaded-C
- http://www.ibm.com/developerworks/library/j-jtp0730/index.html
Tuesday, 1 January 2013
A comprehensive list of all array questions
- http://www.geeksforgeeks.org/write-a-c-program-that-given-a-set-a-of-n-numbers-and-another-number-x-determines-whether-or-not-there-exist-two-elements-in-s-whose-sum-is-exactly-x/
- http://www.geeksforgeeks.org/find-a-triplet-that-sum-to-a-given-value/
- Also practice quicksort from any of the above links well.
- http://www.geeksforgeeks.org/find-subarray-with-given-sum/
- fg
Google Written Test in campus
http://www.geeksforgeeks.org/find-water-in-a-glass/ : solved this one
Question related to this is Pascal's triangle :
http://www.geeksforgeeks.org/pascal-triangle/ : try solving this one in leisure time
Question related to this is Pascal's triangle :
http://www.geeksforgeeks.org/pascal-triangle/ : try solving this one in leisure time
Subscribe to:
Posts (Atom)