Posts

JunitTest

🔹 1. How does Falcon handle such a high volume of trades daily without any delay or issue? ( This shows curiosity about system performance and reliability. ) 👉 “Falcon is processing billions of dollars and thousands of trades daily, so I’m wondering – what makes it handle this much load so smoothly?” 🔹 2. Why do we need both Product Master and Prime DB? Can't Falcon manage trades with just one of them? ( This helps understand the separation of reference vs. transactional data. ) 👉 “If Product Master has all the security info, then what extra thing does Prime DB do that Falcon depends on both?” 🔹 3. Why is Short Sell Approval only an ‘affirmation’ and not a ‘confirmation’? Isn’t that risky in real trade settlement?” ( This shows you're thinking about the risk involved in trade settlement. ) 👉 “PB only gives affirmation, not confirmation. Doesn’t that create a chance of failure if they later say no?” 🔹 4. In SLAB Trader, why do we use manual Pend/Send whe...

Duplicate Implementation

How to Resolve Git Author Identify Unknown and please tell me who you are

Image
  git config user.name " irfankhansoft" git config user.email "irfankhansoftwareengineer@gmail.com" git config --list Create Repository inside your Github and copy that url Now add the remote repo using this url git remote add origin https://github.com/irfankhansoft/git-localconfig-repo git push origin master while push it might ask to authorised by browser just login with your credential to login

Thread Termination and Demon Thread

Image
 Thread Termination: Why : Because Thread are Consuming Resources : Like Memory, Kernel Recourses, cpu Cycle and cache memory When: 1. if thread finished its work, so we need to clean up the thread's resources 2. if thread misbehaving  3. By default application will not stope the thread as long as at least one thread is still running  Therad.intrrupt(): 1 if the thread is executing a method that throws an intrrupedException 2. if the thread's code is handling the interrupt signal explicitly  3.  If any one of the thread is in sleeping or waiting state (i.e. sleep() or wait() is invoked), calling the Thread.interrupt() method on the thread, breaks out the sleeping or waiting state throwing InterruptedException. If the thread is not in the sleeping or waiting state, calling the interrupt() method performs normal behavior and doesn't interrupt the thread but sets the interrupt flag to true   Daemon Thread: Daemon threads are thread that do not prevent the...

How to Create Threads in Java

Image
How to Create Thread There are two ways to Create Thread  1 Extending Thread Class public class ThreadClass extends Thread { @Override public void run() { System . out .println( "Thread Running Thread " +Thread. currentThread ().getName()); } } 2. Runnable Interface public class RunnableClass implements Runnable { @Override public void run() { System. out .println( "Runnable Running Thread " +Thread. currentThread ().getName()); } } Main Class how to Call the Thread and Runnable Threads public class Main { public static void main(String[] args ) { ThreadClass tClass = new ThreadClass(); tClass .start(); RunnableClass rClass = new RunnableClass(); Thread rThread = new Thread( rClass ); rThread .start(); } }    Both will Create the Similar Thread but there are some Advantages as Runnable Interface are 1.  Less memory required for Runnable Interface 2.  If a class is implementing the runnable interface then ...

1 Java Data Structure

 Introduction Foundation Of Java: Basics

Junit 5 (Jupiter) Intro and Architecture

Image
 Junit Api called Jupiter (as we all know Jupiter is 5th planet in solar system) Jupiter : Its Junit 5  Vintage : is another set of Api that you can use where you are running older junit test, so that you can have your old junit which was written on junit 4 also can run parallel with your Junit 5(Jupiter) Ext 3rd Party : This is your own extensions which you have written and have it still use the platform to run the test case IDE : almost all IDE support junit 5 ( Like Eclipse, Intelij) means integrated system will allow you when you click on your Java Class file and write junit test file it will directly pop up with the java 5 Jupiter option  Junit Jupiter 1. Its New Programming Model in Junit 2. Extension Model  3. What you will be primarily working with                                                      ...