Why we use Static ?
Static Keywords are mostly used to efficiently manage memory.
The overhead of repeatedly generating an object is eliminated by using the static.
In the case of utility and constants classes, static methods are useful and convenient.
#Java#javaBasics
DSA Challenge: Day 1 [30/06/2024]
Topics Covered:
- What are Flowcharts?
- Flowchart Components
- Sum of Two Numbers
- Simple Interest
- Maximum of Two Numbers
- Check if Number is Prime
- Sum of Natural Numbers up to ( n )
#JavaBasics#ApnaCollege#DSAwIthJava#DSABasic
Hello all,
This week I’ll be tweeting about the basics of Java, including primitive data types, operators, flow control.
Hit the Follow button and stay tuned.
#JavaBasics
Ep 1 of my Java Series :
🤯 Stop scrolling! If you are starting to code in Java , this ONE method is the HEART of every program you write. What is it and why is it so crucial? 👇
Imagine launching a rocket 🚀.
You need that initial ignition, right? 🔥
The main method in Java is EXACTLY that! It's where the JVM says, "Okay, let's GO!" 🚦 Without it? Your program is going nowhere.
#LearnToCode#JavaBasics
1. Creating a Thread
A thread is the smallest unit of execution inside a process.
In Java, start() creates a new thread and executes the run() logic independently.
#Java#Multithreading#JavaBasics#BackendDevelopment
Done with todays session:
Casting/type conversion and
Methods in Java.
Next stop Basics of Git and Github, then OOP😁.
Let's keep learning, practising and building.
#Java#JavaBasics
Hii guys, I am starting my journey as a Java developer.
Looking to connect with people who are Java developers. Let's connect and grow together 💻👩🏼💻
#Java#javadevelopers#javabasics#javadsa#dsa
Master the Java essentials first!
This guide spotlights the core skills every aspiring software engineer needs to know for a rock-solid Java foundation.
Join us and unlock your coding potential! ✨
Check it here:
#Java#JavaBasics#SoftwareEngineeri
Java me type conversion chhota lagta hai, but bugs yahin se start hote hain
Auto conversion, casting, aur type promotion clear nahi hua to output wrong aa sakta hai
Isko simple way me break kiya hai for easy understanding
Save & Share🚀
#JavaBasics#LearnJava#CodingJourney#DSA
Today I wrapped up Java variables from what a variable is to primitive vs non-primitive types, and how to declare & initialize them.
Step by step, building a stronger foundation. One day at a time. One post at a time.
#Java#JavaBasics#100DaysOfCode#BuildInPublic
"Kicking off #100DaysOfCode with Java!!! Day 1:
* Setting up Eclipse & writing my first 'Hello, World!'
* Completed some fundamentals-operators, variables, data types.Feeling strong!! #javabasics#coding
To understand the need to master primitive types in Java, let's see if you can figure out what's wrong with this piece of code.
int fact(int n){
int val = n;
int i = n - 1;
while(i>0){
val = val * i;
i = i - 1;
}
return val;
}
#JavaBasics