Posts

REDIS cache

  Caching... Save network calls Avoid repeated computations. https://www.youtube.com/watch?v=U3RkDLtS7uY cache policy Least recent used (LRU) Sliding window Global cache (Indenpedently Redis) Write through -> HIt the cache & do update and write to db Write Back -> hit the db and remove the entry in the cachehe REDIS In Memory data store (db, cache messaging) REDIS -java apil (Jedis) Java CRUD using REDIS https://www.youtube.com/watch?v=eYfopvusG_s

PL-SQL interview question

#) What type of Data Model used in your current project. #) Source of Data flow in the current application. #) About WITH clause and               benefits #) How Partitions work in Table's #) What are all the performance            tuning techniques used in your         projects #) How analysis SQL Plane. and a few SQL questions in joins, index. Partitioning : use of partitions, types of partitions and when do we need partitions Performance tuning : a) Steps to tune SQL query, use of HINTS b) Scenario: yesterday query was running fine but today its taking time. How to fix this issue. How to read Explain Plan :  what is nested joins, merge joins & has joins Indexing PL SQL : basic questions like & use of GTMP table to aggregate data. Second highest salary within a department – give an example of WITH CLAUSE, ROW ID, ROWNUM, etc. 1  Types of Partitions:         When its required?         What is RANGE partition? 2  P

New Learning

What is 3DNS? http://ramsakal.blogspot.com/p/3dns-what-is-3dns-and-how-does-it-work.html

Technical Manager interview.

Day to day activities What is the project model did you worked on before? what is the development you work?  what challenges u faced in the past. How you handle the situation How many resources you handle. You reporting to whom? In case of any technical discussion or proposal with the client, what is your role?  How much you save the cost for the client for the last project? Do you have Hands-on experience in  Java technology? Suppose, I want to develop a system Data would be tree format, object, key and value, unstructured order. How you design What is the purpose of API Gateway in microservice and Service registry what tool you used it How you handle the new tech stack and project which you never handle before? How to deploy the java project in the AWS cloud? How to handle the message in the Cloud? what tool u used  Deliver able impact. How u handle the situation If the client manager not giving co-operation. How you handle the situation

Java Interview questions

Which one is efficient in terms of retrieval between TreeMap and HashMap What is an atomic operation and synchronized in Java? We have ReST Service and multiple clients accessing it. How do you handle the count of calls to ReST Service from these clients including concurrent calls We have Hive Tables - Emp Table and Dept Table and a join query to get employee name and department name on join condition empId == deptId. Can you explain internal execution of this hive query? Explain the mechanism of Mapper Output related to Reducers Input. What is the default partitioner used in Spark? How to handle data skew and cleansing operations? Do you know about Spark Execution Memory Model? Since you have 15+ yrs of exp, what type of role are you looking at (Non-Technical)  Explain purpose of Spring Profiles How do you find the middle node in a singly linked list without using any built-in functionality? When we try to place

Core Java Interview

General ====== Design immutable class? Why instance variables are final? Polymorphism How to immutable the Date class? LocalDate or LocalDateTime (Java 1.8) Print sequence using 3 threads in java https://java2blog.com/print-sequence-3-threads-java/ Explain current project architecture? What is the mean? What is VaR? What is Historical simulation? Find the middle index of the given array or collection? Find if the list is cyclic or not? Explain current project architecture? what is lock which one is better synchronization or lock API What is complexity? web service difference between REST and SOAP. Another way of transferring data than web services Object to XML conversion Annotation use in POJO classes in rest services. Thread ======= No of way to create a thread.   Difference between Callable and Runnable. The print alternate number using two threads and so on. (Even and Odd Thread) Difference between CyclicBarrier and CountDownLatch? https://javahungry.blo

JAVA 8

Java 8 lambdas Why Lambdas? Enables functional programming Readable and concise code - eliminate the boilerplate code Easier-to-use APIs and libraries. Enables Support for parallel processing - Functional Programming read the more readable code or maintainable code Problem in OOPS Everything is an object All code blocks are associated with classes and objects. public class Greeter {  public void greet(){   System.out.println("Hello World");  }  public static void main(String[] args) {   Greeter greeter = new Greeter();   greeter.greet();  } } Output: Hello World Passing Behavior in OOPS The problem of the above program. greet() method always print the "Hello World" message. If you want to print the different message on each time the greet method called. accept the argument. greet() method needs to know what to do. that is not an elegant design. Have an interface as the argument itself and method needs to perform the behavior