Posts

Multithreading at a Glance - Part 1

Image
  H ello Techie's, How are you all? Hope you are doing well in life. My name is " Sumit Srivastava " and I am MCA passout of 2019 batch. I have taken Multithreading as today's topic. So, let's go. Multi-threading Guy's before moving to Multithreading , first we should know about what the Thread is? A Thread is a lightweight sub-process . It a a smallest part of process which allows to operate any task in a efficient way without interacting to any other thread. It means a thread is independent in nature. Thread We can create a thread in two ways:- 1. by extending Thread class 2. by implementing Runnable Interface. Ex.1   By extending Thread class - public class Test extends Thread{          public void run(){                    System.out.println("Thread are in run method by extending thread class");          } } Ex.2 By implementing Runnable Interface - public class Test im...

Lambda Expression in JAVA--Part 1

Image
Hey, hello folks. How's the thing is going? Hope you guy's are doing well in your life,if not then don't worry all will be good soon. So my name is " Sumit Srivastava " and I am MCA passout of 2019 batch.  This is my first ever Technical Blog which i am writting to share some concept learnings on JAVA. So today i am taking a very important feature of JAVA 8. Here we go. Lambda Expression What is Lambda Expression? It is one of the most important feature of java which is introduced in Java SE8. It is used to provide a short and clear way to represent one method interface by using expression. Its a block of code similar to function. Syntax: parameter -> expression Java lambda expression syntax consisted of three components:- Argument-list (It can be empty/non-empty) Arrow-token (It is basically act as a bridge between Argument list and expression) Body ( We write expressions, statements, for lambda expression,gives implementation of functional interface) Lambda E...

Two Best Friends

Image
Two Best Friends                T wo friends were walking through the desert. During some point of the journey they had an argument, and in between that one friend slapped the other one in the face.The one who got slapped was hurt, but without saying anything,he wrote in the sand-                                          “ Today my best friend slapped me in the face .” They kept on walking until they found an oasis, where they decided to take a bath. The one who had been slapped got stuck in the mire and started drowning, but the friend saved him. After he recovered from the near drowning, he wrote on a stone-                                        ...

Aurat- Pyar ka Sagar

Image
E k Aurat bik jati hai, Pyar ke do bol se Pati ke keh dene bhar se Aaj khane me maja aa gaya. Bachhe jab kehte hai Ma mujhe samjhti hai Wo dugne utsah se jut jati hai Unki pasand ko khoj lati hai. Saas jab kehti hai, Meri bahu auron jaisi nahi hai Wo apni ma ko bhi us din bhul jati hai, Saas se dil ka rishta nibhati hai. Sach me aurat bahut saste me bik jati hai, Pyar ke do bol ko taras jati hai, Bas khojti hai apne samman ko Kabhi pati ki ankhon me To   kabhi bachhon ke sapno me Aur kabhi rishto aur apno me. Wo sabko dekh ke he khus ho leti hai, Bina Vitamin khae he jee leti hai, Sab ko muskuraya dekh ke khus ho leti hai, Unke khile chehron me khud ko sanjo leti hai. Aurat ke deh ko jis din tum samjh jaoge, To sahi mayno me uske pyar ko paoge, Wo khud ko mita ke bhi khus hoti hai, Dard jhel kar bhi jindagi deti hai. Kash uske mol ko tum samajh pao, Uske pas ja kar kabhi pyar se batlao, Uske kahe ko halke me na udao, Use bhi apni tarah kabil batao. Samajh jao tum aurat k tyag ko, J...