---------- Forwarded message ----------
From: Hai Yi
Date: Thu, Oct 2, 2014 at 11:47 PM
Subject: 10/01/14, 5:30PM, BofA phone interview with Wilson
Java
1. Explain how HashMap works
2. Compare HashTable and ConcurrentHashMap. Explain how CHM handle concurrency.
3. There is an arraylist of 1,2,2,3, how do you output unique values?
how do you only output dup values?
4. Can you remove an element during iteration? How do you do it properly?
5. Can you update elements in an arrayList if its reference is defined
as "final". If so, what do you do to prevent it?
6. Name JSP internal objects. If in URL there is "id=12345", how to
retrieve that value?
7. Difference b/w StringBuffer and StringBuilder; and their difference
with String?
8. What design patterns can you name? What's singleton?
9. How do you implement Producer-consumer pattern?
10. Explain Executor framework and Threadpool
11. Explain volatile and transient
12. Explain Breath-first traversal and depth-first traversal
13. What's the new feature in JDK 8? What's the "default" keyword used
for in JDK 8 context?
Database
1. What's Union and Union all?
2. explain left join and inner join
3. There is a table "Salary" with two columns "id" and "salary", this
is oracle, write sql to list first 4. 100 record with salary from
highest to lowest
4. How do you dump the data from table A to table B, if table B
doesn't exist. Do it in one SQL statement.
5. Difference b/w function and store procedure
6. What's view? What's trigger?
7. How to call a store procedure from Java? The JDBC API.
8. What are the transaction isolation levels?
9. How do you get the current date using Oracle?
10. In PL/SQL, how do you throw an exception and how to catch it?
Unix
1. what's the command to find the files that were updated in the past 10 days?
2. How to find a file with a particular name, like "hello.java"?
3. What's the command to kill a running Java process and generate threaddump?
4. There is a file of 10 million lines, whats' the command to list
first 10 line?
5. What's the command to count the line number in a file, what parameter to use?
6. In shell script, how to split a string with dilimiter?
7. In shell script, how to check if a file exists or not?
8. what's the command to sort a file?
9. what's the command to list all running processes?
10. In VI, how to replace a repeated word in the whole text?
My main blog
Labels
_fuxi
(75)
_IV
(146)
_misc
(5)
{610610
(30)
algo
(1)
automatedTrading
(8)
banking/economy
(3)
book
(14)
c++misc
(125)
c++real
(15)
c++STL/java_container
(7)
cppTemplate
(1)
db
(13)
DB_tuning
(4)
deepUnder
(1)
dotnet
(69)
eTip
(17)
excelVBA
(12)
finance+sys
(34)
financeMisc
(24)
financeRisk
(2)
financeTechMisc
(4)
financeVol
(21)
finmath
(17)
fixedIncome
(25)
forex
(16)
IDE
(24)
invest
(1)
java
(43)
latency
(4)
LinearAlgebra
(3)
math
(30)
matlab
(24)
memoryMgmt
(11)
metaPrograming
(2)
MOM
(15)
msfm
(1)
murex
(4)
nofx
(11)
nosql
(3)
OO_Design
(1)
original_content
(4)
scriptUnixAutosys
(19)
SOA
(7)
socket/stream
(15)
sticky
(1)
subquery+join
(2)
swing
(32)
sybase
(6)
tech_orphan
(12)
tech+fin_career
(30)
telco
(11)
thread
(21)
timeSaver
(13)
tune
(10)
US_imm
(2)
US_misc
(2)
windoz
(20)
z_algo+dataStructure
(4)
z_arch
(2)
z_c#GUI
(30)
z_career
(10)
z_career]US^Asia
(2)
z_careerBig20
(1)
z_careerFinanceTech
(11)
z_FIX
(6)
z_forex
(31)
z_hib
(2)
z_ikm
(7)
z_inMemDB
(3)
z_j2ee
(10)
z_oq
(14)
z_php
(1)
z_py
(26)
z_quant
(4)
z_skillist
(3)
z_spr
(5)