Tuesday, February 12, 2019

Ericsson Interview

Round 1 : mostly Java

1. SingleTon - In multiple servers in a culstered envirnment.
2. HashMap put method internally, how that works
3. JVM architecture
4. HashCode and equals
5. multiple producer and consumers
6. Builder patterns
7. Nested classes - Static nested
8. Types of garbage collector in java
9. Generics and string pool

Friday, December 29, 2017

Java Interview Qustions and topics ..

Few sites for java ..

https://www.journaldev.com/
http://javarevisited.blogspot.in/
java67.com

hot topics - will be asked in almost every interivew  ...
singleton , immutable, cloning , serialization,
producer consumer multithreading problem,
java 8 features,
polimorphism - overloading, overriding in very deep
interface vs abstract class
oops concepts with examples
print even odd using two threads
collection , hashmap - equals and hashcode
Jvm architecture,
volatile and transient keyword
garbage collection
try-catch-finally
Design patterns - Singleton, Factory, Builder, Decorator, Observer ( these are sufficient )

my interivew questions --
https://anytechnicalnotes.blogspot.in/?m=1


Monday, November 6, 2017

Accolite Interview - Set 2

Company Name - Accolite Bangalore

Date - 6 - 11 - 2017

Round - 1st Telephonic, questions are mostly in Java

Questions -

1. Reversing of linked list
2. Sorted Rotated array. find minimum element.
3. Binary search algorithm
4. Volatie keyword use and drawbacks - not useful in multithreading
5. Immuatable classes uses and how to create one
6. All method to create singleton and uses of each
  . Uses of singleton in code ( provide singleentry point , window manager, logger class)
7. Generics uses
8. Print even and odd sequence using two threads
9. Factory method - how to create and uses
10. how hashmap works internally, put and get method
( how string makes good key in hashmap - coz they are immuatable and they do not calculate hash value again in get method instead they get it from string pool)
11. Annotations in Java
12.


Wednesday, September 27, 2017

Interview questions to review

Digit to word converter 
http://javahungry.blogspot.com/2014/05/convert-math-number-to-equivalent-readable-word-in-java-code-with-example.html 



file - find and replace string in file 
large file , moving files scrolling

Very Common interview questions- must know
Merging k sorted list or arrays
Search in dictonary for a word
How will you implement dictonary
find i, j and k where i2 + j2 = sum2
find i, j and k where i + j = sum
find 2/3 element whose sum is close to zero
Sort array of 0 and 1 or 0 , 1 and 2
String anagrams
Permutation of string
First repeating/ Non repeating charactor
external sorting , counting sort, bucket sort and radix sort questions
quicksort, heapsort and mergesort
topological sort
BFS, DFS
left, right, bottom, top view of the binary tree

Longest common substring
longest common subsequence length
longest palindrom substring/ subsequence



Subex interview

Company Name - Subex
Data - Aug, 2017
Rounds - Face to Fcae

Round 1 -
Core java full

Round 2
1. what happens if you import multiple jar files having same class structure(fully qualified name is aame)
2. what java version you use
3. immutable classes other than string
4. stock problem - find maximum profit of buy and selling
5. Singleton

Apponomic Interview

Company Name - Apponomic 


Date - 25 - 9 - 2017

Round - 1st Telephonic

Questions -

1. Suppose you want to repeat a time in every 5 hours, How you will achieve it in multi threading.
(using Timer Task )
2. what does volatile keyword do and how 
3. Difference between synchronized and volatile
4. how we make sure a method does not accessed by more than 10 threads at a time
    ( newFixedthreadPool(10), call submit() )
5. can static method be synchronised. what happens when you put sync keyword in static method
6. how to synchronised a method using multiple blocks 
( divide in multiple blocks and use lock object) 
7. what is hashcode()
8. internal working of hashmap
9. A global counter variable - should be accessed by multiple threads and give proper value
    (take atomic variable) 
10  Questions on java.util.concurrent package like below
11. problems in hashmap
12. How concurrenthashmap works
13. how concurrenthashmap achieve multiple concurrency level
14. what all collections you used
15  what is queue and about priority queues
16. how to check if binary tree is BST or Not
17. difference between interfaces and abstract classes
18. LRU cache implement

Accolite Interview

Company Name - Accolite Bangalore

Date - 25 - 9 - 2017

Round - 1st Telephonic, questions are mostly in Java

Questions -

1. Internal working of HashMap
2. Cycle detection in LinkedList(Floyd algo)
3. Overriding Static methods in Java - no overriding in static methods, will be called as per object ref.
4. Overridign methods in java - derived method will hide base methods
5. Overriding variables in java - Not possible we simple get base variable

Examples -
class Parent{ int x, void method() { }}
class Child extends Parent { int y, void method(){ }}

Parent p = new child();
sysout(p.x) // ok
sysout(p.y) // CE
sysout(p.method()) // method in derived class

imagin method in decleared static in base or child any - Now its not overridden
p.staticmethod() // calls to parent class method since object decleared as parent class


6. Public Static Void main(String [] arg)
6. What if you change public and static place - No problem
7. What if you change return type of main method(it will be overloaded, give us RE- Main method not found)
8. try , catch , finally - remember finally always get called)
9. immutable classes
10. clone method (deep and shallow copy)
11. Two way hashmap design

Ericsson Interview

Round 1 : mostly Java 1. SingleTon - In multiple servers in a culstered envirnment. 2. HashMap put method internally, how that works 3....