JavaWith.NextlevelCoders
Kanalga Telegram’da o‘tish
Ko'proq ko'rsatish
434
Obunachilar
-124 soatlar
-27 kun
-130 kun
Postlar arxiv
https://youtube.com/@codingdrawrun?si=TixFIrdW2zAX3U2M
==============================
YOUTUBE CHANNEL ▶️
'subscribe'
==============================
https://youtube.com/@codingdrawrun?si=TixFIrdW2zAX3U2M
==============================
YOUTUBE CHANNEL ▶️
'subscribe'
==============================
Q. Explain where variables are created in memory ❓
➡️ In Java, variables are created in memory based on their scope and type.
Here's a breakdown:
==============================
🟢 Primitive local variables: Created on the Stack.
- Int, byte, short, long, float, double, boolean, char.
- Stored in the stack frame of the current method.
- Removed from the stack when the method returns.
🟢 Reference local variables: Created on the Stack (reference) and *Heap* (object).
- Objects, arrays, strings.
- Reference (memory address) stored on the stack.
- Actual object stored on the heap.
🟢 Instance variables: Created on the Heap.
- Non-static fields of a class.
- Stored in the heap memory, along with the object instance.
🟢 Static variables: Created on the Method Area (permanent generation).
- Static fields of a class.
- Shared by all instances of the class.
- Loaded into memory when the class is loaded.
🟢 Method parameters: Created on the Stack.
- Passed to a method.
- Stored in the stack frame of the method.
==============================
Note ⬇️
==============================
- Stack: A region of memory that stores data in a Last-In-First-Out (LIFO) order. Used for local variables, method parameters, and method return addresses.
- Heap: A region of memory that stores data in a hierarchical structure. Used for objects, arrays, and strings.
- Method Area: A region of memory that stores class metadata, including static variables.
Will the compiler creates a default constructor if I have a parameterized
constructor in the class ❓
https://youtube.com/@codingdrawrun?si=5CYNjALYVRBODZ_m
Subscribe Our YouTube channel for daily technical quizzes and Interview Questions
GO Community section on youtube and solve daily Quiz
Now I uploaded 'assert' keyword base 3/4 quiz go and choose Correct Option ⬆️⬆️⬆️⬆️⬆️⬆️
https://youtube.com/@codingdrawrun?si=5CYNjALYVRBODZ_m
Subscribe Our YouTube channel for daily technical quizzes and Interview Questions
GO Community section on youtube and solve daily Quiz
Now I uploaded 'assert' keyword base 3/4 quiz go and choose Correct Option ⬆️⬆️⬆️⬆️⬆️⬆️
Q. What is assert keyword in Java ❓
The
assert keyword is a debugging statement in Java that checks if a condition is true and throws an AssertionError if it's false.
It's used to validate assumption and catch unexpected errors during development and testing.Can the super keyword be used to access a subclass method from a superclass ❓
Q. When you pass an array to a method , the method receives____ ❓
JOIN WhatsApp group for internship
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
==============================
Students who all are joining the session will be getting the Participation Certificates & Chance to Grab Stipend Internship (upto 15k)
Use below link to join the group and circulate the link in your class groups
Group link :
https://chat.whatsapp.com/IBlUB4uMaQo5JmDKILMrqi
Once all the department students are joined we will post all the information in the group
👨💻 SQL Quiz
Which SQL statement is used to remove a record from a table?
A. REMOVE
B. DELETE
C. ERASE
⬇️ Guess the correct option in the comments!
Company Name : Zerodha
Role : Backend Intern
Batch : 2024
Link : https://careers.zerodhafundhouse.com/jobs/NYRKjkWrqkPN/backend-engineer-internship
