💻 Java Practice Update | Largest Number in Array 📌 Problem: Find the largest number in an array 🧠 Approach: Assume first element as max Traverse array Compare each element Update max if larger value found ⚙️ Key Learning: Strengthens logic building and is useful in automation testing scenarios like validating UI tables and API responses. #Java #Arrays #CodingPractice #SDET #AutomationTesting
Java Largest Number in Array Practice
More Relevant Posts
-
💻 Java Practice Update | Largest Number in Array 📌 Problem: Find the largest number in an array 🧠 Approach: Assume first element as max Traverse array Compare each element Update max if larger value found ⚙️ Key Learning: Strengthens logic building and is useful in automation testing scenarios like validating UI tables and API responses. #Java #Arrays #CodingPractice #SDET #AutomationTesting interviewchat codeonedigest cod
To view or add a comment, sign in
-
-
Day 49-What I Learned In a Day (JAVA) Today, I focused on understanding the execution flow of static elements in Java. 🔹 Learned about: • Static variables and how they are shared across objects • Static methods and how they can be accessed without object creation • Static initializer (single-line) • Static initializer (multi-line) This helped me clearly understand how Java handles memory and execution at the class level before objects are created. Building strong fundamentals step by step! #Java #Programming #LearningJourney #OOP #TechSkills
To view or add a comment, sign in
-
-
🚀 Exploring Method Reference in Java Learned how method references provide a cleaner and more readable way to refer to methods using :: instead of lambda expressions. Used different types like static method reference, instance method reference, and constructor reference. 💻 #Java #Java8 #MethodReference #FunctionalProgramming #CodingJourney
To view or add a comment, sign in
-
-
🚀 Exploring Multithreading in Java Created a simple program using Thread + Lambda (Runnable) to print numbers with a delay. 🔹 Learned how threads work 🔹 Used lambda expressions for cleaner code 🔹 Implemented Thread.sleep() for controlled execution Small steps every day towards mastering Java and backend development 💻🔥 #Java #Multithreading #CodingJourney #DeveloperLife #LearningByDoing
To view or add a comment, sign in
-
-
Day 36/100 – Working with ArrayList in Java 📚 Today I practiced using ArrayList in Java, a dynamic array that allows flexible storage and manipulation of data. Unlike normal arrays, ArrayList can grow and shrink dynamically, making it very useful in real-world applications. Key learnings: • Adding elements using add() • Storing multiple values dynamically • Finding size using size() • Easier and more flexible than traditional arrays Understanding collections like ArrayList is important for handling data efficiently in Java. Building strong fundamentals step by step. 🚀 #100DaysOfCode #Java #ArrayList #DataStructures #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
-
Understanding Java Class Loading & Memory Areas Today, I learned how Java manages memory during Class Loading. It helped me understand what happens behind the scenes when a program runs. Simple Example: class Demo { static int x = 10; // Stored in Method/Class Area void show() { int y = 5; // Stored in Stack System.out.println(x + y); } } public class Main { public static void main(String[] args) { Demo obj = new Demo(); // Object stored in Heap obj.show(); } } **When this program runs: 1.Class is loaded into Method Area 2.Static variable (x) is initialized once 3.Object (obj) is created in Heap 4.Method execution happens in Stack #Java #Programming #LearningJourney #SDLC #Coding #Developer #CareerGrowth
To view or add a comment, sign in
-
-
💻 Java Practice Update | Second Largest Number in Array 📌 Problem: Find the second highest number in an array. 🧠 Approach: Maintain two variables: first and second Traverse the array once Update values based on comparison logic ⚙️ Key Learning: Improves problem-solving skills and helps build strong logic for coding interviews and automation testing scenarios. #Java #Arrays #CodingPractice #SDET #AutomationTesting
To view or add a comment, sign in
-
-
Day 50 – Understanding Java Execution & ClassLoader ☕ Today I revised how a Java program is executed and the role of the ClassLoader in JVM. Topics covered: 🔹 How Java code is compiled into bytecode (.class files) 🔹 How JVM executes the bytecode 🔹 Role of the ClassLoader in loading .class files 🔹 How class files are brought into the JVM memory (code segment) Understanding how the ClassLoader loads classes and how JVM processes them gave me deeper insight into Java’s internal working. This helped me move beyond just writing code to understanding how Java runs behind the scenes 🚀 #Day50 #JavaJourney #JVM #ClassLoader #CoreJava #Consistency
To view or add a comment, sign in
-
🚀 Beats 100% of all Java solutions on LeetCode! Just solved LeetCode #290 — Word Pattern in Java with 0ms runtime, outperforming every submission. Here's how I approached it 👇 🧩 Problem: Given a pattern (like "abba") and a string of words, check if the words follow the exact same pattern — a full bijection. e.g. pattern = "abba", s = "dog cat cat dog" → true ✅ 💡 My approach: Used a single HashMap<Character, String> to map each pattern character to its corresponding word. The key insight: also check containsValue() to prevent two different characters from mapping to the same word — ensuring true one-to-one bijection. 📊 Results: Runtime: 0 ms — Beats 100.00% 🌿 Memory: 42.65 MB — Beats 80.14% 🔑 Key takeaway: Always verify bijection in both directions — a one-way map is not enough for pattern matching problems. One extra containsValue() check is all it takes! All 44 test cases passed ✅ — Clean, simple, and blazing fast. #LeetCode #Java #DSA #CodingChallenge #ProblemSolving #100Percent #Programming #SoftwareEngineering #CompetitiveProgramming #HashMap
To view or add a comment, sign in
-
-
🚀 Day 21 of #128DaysOfCode 🔍 Key Learnings: Efficient searching in O(log n) Using low & high to narrow the range Finding correct position even if target is absent 🧠 Approach: Compare mid with target → move left/right → return index or insert position Consistency is key 🔥 #DSA #Java #CodingJourney #PlacementPreparation
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development