Java Hyd Team
746 subscribers
986 photos
39 videos
670 files
690 links
https://teamhydteam.my.canva.site/

Can visit us on our website ๐Ÿ˜Š
Still working on it ๐Ÿ˜Š
Download Telegram
๐ƒ๐ข๐ฌ๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ž๐ ๐‚๐š๐œ๐ก๐ž ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ: One of the most interesting concepts in system design.

๐–๐ก๐š๐ญ ๐ข๐ฌ ๐‚๐š๐œ๐ก๐ž?
A cache is a data storage component that can be hardware or software. It enables the client to find data more quickly than other types of memory.

๐–๐ก๐š๐ญ ๐ข๐ฌ ๐ƒ๐ข๐ฌ๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ž๐ ๐‚๐š๐œ๐ก๐ž ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ?
If the data is too large to be served by a single cache on a single machine, a distributed machine is required to serve the clients' requests in a scalable and distributed manner. This is referred to as a distributed cache system.

๐‡๐จ๐ฐ ๐ƒ๐ข๐ฌ๐ญ๐ซ๐ข๐›๐ฎ๐ญ๐ž๐ ๐‚๐š๐œ๐ก๐ž ๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ ๐ฐ๐จ๐ซ๐ค๐ฌ?
Generally, a Distributed Cache is based on a Distributed Hash Table(DHT) (a decentralized storage system that provides lookup and storage schemes similar to a hash table for storing key-value pairs.) which is similar to a hash table but spread across multiple nodes. By managing the addition, DHT enables a distributed cache to scale on the fly.

๐‡๐จ๐ฐ ๐๐จ ๐ฐ๐ž ๐ž๐ฏ๐ข๐œ๐ญ ๐ญ๐ก๐ž ๐œ๐š๐œ๐ก๐ž ๐š๐ง๐ ๐ฐ๐ก๐ž๐ง ๐๐จ ๐ฐ๐ž ๐ง๐ž๐ž๐ ๐ญ๐จ ๐ž๐ฏ๐ข๐œ๐ญ ๐ญ๐ก๐ž ๐œ๐š๐œ๐ก๐ž?
Eviction means removing key and value entries from the cache memory, as the cache is expensive, and not all the values present there are always being used. So we need to identify which entry is not being used and is sitting at the location ideally.

One of the common strategies is โ€œLeast Recently Usedโ€ or LRU. Delete the entry which is recently being used.

๐‡๐จ๐ฐ ๐œ๐š๐ง ๐ฐ๐ž ๐ฌ๐ฉ๐ž๐ž๐ ๐ฎ๐ฉ ๐ญ๐ก๐ž ๐ฉ๐ซ๐จ๐œ๐ž๐ฌ๐ฌ?
We need a service that serves get/put/delete requests; even though we're using RAM, which is fast, it's still blocking calls.
We can use 2 Logic:
- spawn n no of threads as and when we get the requests or we can have a bigger thread pool to handle thread.
- Event-driven logic.
Java Hyd Team
OracleDatabaseNotesForProfessionals (1).pdf
Keep these notes always it will help you in everything related to Oracle database
//Write a java program accept date of birth from scanner and check eligible for vote ?
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("Input your date of birth (yyyy-mm-dd) : ");
String inputString = in.nextLine();
if (inputString.length() != 10)
{
System.out.println("Error: Invalid length");
}
else
{
String[] date = inputString.split("-");
int year = Integer.parseInt(date[0]);
int month = Integer.parseInt(date[1]);
int day = Integer.parseInt(date[2]);
if (year < 2002)
{
System.out.println("You are eligible to vote.");
}
else
{
if (year > 2002)
{
System.out.println("You are not eligible to vote.");
}
else
{
if (month < 10)
{
System.out.println("You are eligible to vote.");
}
else
{
if (month > 10)
{
System.out.println("You are not eligible to vote.");
}
else
{
if (day <= 27)
{
System.out.println("You are eligible to vote.");
}
else
{
System.out.println("You are not eligible to vote.");
}
}
}
}
}
}
}
}
This is correct code but this brute code will update you with correct n small code for the same
Forwarded from SathyaReact
๐Ÿ˜๐Ÿ˜
This is what happens when you have an attitude problem if you are capable of something never settle for less this job has been rejected because earlier they said 3lpa on demand of 4.5 now 2.4 after taking 7 rounds of interview
Keep one offer in hand and negotiate with others again keep an offer of a higher package and negotiate for a higher package
This is how you can get good package ๐Ÿ“ฆ with a great experience
But to play this game ur concepts must be clear
๐Ÿ”ฅ1
import java.util.*;
public class PalidromeNumber {
public static void main(String[] args) {
Scanner x = new Scanner (System.in);
System.out.println("Enter value to check palidrome or not Palidrome");
String s1= x.next();
String s2 = "";
for(int i= s1.length()-1;i>=0;i--) {
s2 = s2+ s1.charAt(i);
}if (s1.equals(s2)) {
System.out.println("The entered number "+s1+" is a palindrome number ");
}else{
System.out.println("The entered number "+s1+" is not a palindrome number ");
}
}
}
class PalidromeNumber1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number: ");
int num=sc.nextInt();
int r,sum=0;
int temp=num;
while(num>0)
{
r=num%10;
sum=(sum*10)+r;
num=num/10;
}
if(temp==sum)
System.out.println("The entered number "+temp+" is a palindrome number ");
else
System.out.println("The entered number "+temp+" is not a palindrome");
}
}
static List<EdM1>list2= List.of(new EdM1(1001,"Kannababu","m",40000,"Hyderabad","EIE"),new EdM1(1002,"Srinivas","m",42000,"Chennai","CSE"));

public static void main(String[] args) {
list2.forEach(System.out::println);
from now create a list using this method
Forwarded from SathyaReact
Join the react mock test in lab come fast
Microsoft is Hiring for 2023 batch Software Engineer
Role: SDE
Passout year: 2023
Qualification: B.tech/BE/MCA/M.tech/BCA
Branch: CS/IT/EE/ECE/EEE
Ctc : 42 Lpa - 46 Lpa
Location: Bangalore, Hyderabad, Noida

Apply now - https://careers.microsoft.com/us/en/job/1494883/Software-Engineering-Full-Time-Opportunity-for-University-Graduates

Telegram: @stockkida

WhatsApp: https://chat.whatsapp.com/F7kqpKp6WFZJQiuTXpYH1K