434
订阅者
无数据24 小时
无数据7 天
-230 天
帖子存档
What is the finalize () method in java
The finalize() method in Java is a special method that is automatically called by the garbage collector before an object is reclaimed. It's used for performing cleanup operations or releasing resources associated with the object before it's garbage collected.
Evolution of finalize() in Java
Intro: finalize()- a method in Java for performing cleanup operations before object reclamation.
Introduced: finalize() introduced early in Java's history for resource management.
Usage: Used to release resources or perform cleanup tasks.
Issues: Inefficient, unreliable, and not guaranteed to be called promptly.
Java 9: Deprecated finalize() method in Java 9.
Recommendation: Replace finalize() with try-with-resources or other cleanup mechanisms.
Conclusion: The deprecation of finalize() encourages more reliable and efficient resource management practices in Java.
5 Min Learn ✅
How to become a better software developer:
1. Admit you don't know it all
2. Practice, practice, practice
3. Take every opportunity to learn
4. Accept your peers as a valuable source of knowledge
5. Embrace failure as a way to grow
What is PermGen in java
PermGen, or Permanent Generation, is a part of the Java heap memory that is used to store class metadata, method information, and other reflective data. However, it was removed in Java 8 and replaced with Metaspace.
Evolution of PermGen in Java
Intro: PermGen - a memory section in Java storing class metadata.
Introduced: PermGen introduced in early versions of Java.
Issues: Limited size caused OutOfMemoryErrors in heavy applications.
Java 8: PermGen removed in Java 8.
Replacement: Metaspace introduced in Java 8.
Benefits: Metaspace dynamically resizes, avoiding memory errors.
Conclusion: PermGen's removal in Java 8 led to more flexible memory management with Metaspace.
Learn ✅
Typical java interview questions sorted by experience
Junior
* Name some of the characteristics of OO programming languages
* What are the access modifiers you know? What does each one do?
* What is the difference between overriding and overloading a method in Java?
* What’s the difference between an Interface and an abstract class?
* Can an Interface extend another Interface?
* What does the static word mean in Java?
* Can a static method be overridden in Java?
* What is Polymorphism? What about Inheritance?
* Can a constructor be inherited?
* Do objects get passed by reference or value in Java? Elaborate on that.
* What’s the difference between using == and .equals on a string?
* What is the hashCode() and equals() used for?
* What does the interface Serializable do? What about Parcelable in Android?
* Why are Array and ArrayList different? When would you use each?
* What’s the difference between an Integer and int?
* What is a ThreadPool? Is it better than using several “simple” threads?
* What the difference between local, instance and class variables?
Mid
* What is reflection?
* What is dependency injection? Can you name a few libraries? (Have you used any?)
* What are strong, soft and weak references in Java?
* What does the keyword synchronized mean?
* Can you have “memory leaks” on Java?
* Do you need to set references to null on Java/Android?
* What does it means to say that a String is immutable?
* What are transient and volatile modifiers?
* What is the finalize() method?
* How does the try{} finally{} works?
* What is the difference between instantiation and initialisation of an object?
* When is a static block run?
* Why are Generics are used in Java?
* Can you mention the design patterns you know? Which of those do you normally use?
* Can you mention some types of testing you know?
Senior
* How does Integer.parseInt() works?
* Do you know what is the “double check locking” problem?
* Do you know the difference between StringBuffer and StringBuilder?
* How is a StringBuilder implemented to avoid the immutable string allocation problem?
* What does Class.forName method do?
* What is Autoboxing and Unboxing?
* What’s the difference between an Enumeration and an Iterator?
* What is the difference between fail-fast and fail safe in Java?
* What is PermGen in Java?
* What is a Java priority queue?
* *s performance influenced by using the same number in different types: Int, Double and Float?
* What is the Java Heap?
* What is daemon thread?
* Can a dead thread be restarted?
Source: medium.
What was the original name of Java before it was renamed due to trademark issues?
https://youtube.com/shorts/0hujZkJ9ZwA?si=9cyC0thzRinAsQeC
*
*
*
*
*
comment down Correct Answer
*
*
*
*
*
*
Give Your 15 sec and know about the StringBuffer & StringBuilder
https://youtube.com/shorts/tNGCEDeGu8c?si=dgQuEQLwpbz-DIwJ
🎖System Design Interview Questions for FAANG
https://drive.google.com/file/d/1CV5KRmdnbF0QcxKDPXxdBdgynSZuPbdS/view?usp=drivesdk
Hi Team,
Please find the JobSeeker tip for the day - 11Apr
You need to parallel do 2 things, PREPARATION & JOBHUNTING.
You need to keep learning technology, and apply them into real time projects.
And put above gained knowledge in your resumes, and do effective jobhunting.
Plan to daily do 5hrs of preparation & 5 hrs of JobHunting.
https://youtube.com/shorts/xezVe1HLWrM?si=-2ixsC9CW0npHGe_
Give your 15 sec and know what is wrapper classes in java
https://youtu.be/HeW3HTzBIv4?si=pjhFkoH6CNvtRco7
Must Watch Video Theory and Practically Implementation With logical Interview Questions
And Share your feedback with me.Let me know what you liked and what could be improved.
Your feedback is valuable and will help me make the content better for you.
Thank You 🙏
Here is how to send LinkedIn Referral message to get interview calls from top companies 💯👇
Hi [Name],
There is an opening for Front-End Developer and I would like to share my resume for that.
If you can do refer that would be great. Check my profile once if you think you can consider me for the role. I’ll forward my resume to you.
Also, I’m serving notice period and can join early LWD is
29th October.
Total exp - 2.8 YR
Thanks
(Tap to copy)
Like this post if you need similar content in this channel 😄❤️
Best cold email technique to network with the recruiter for the future opportunities 👇👇
Interview Mail Tips-
You can achieve this by sending thoughtful emails.
✅ 𝗔𝗽𝗽𝗹𝘆𝗶𝗻𝗴 𝗳𝗼𝗿 𝗷𝗼𝗯 𝗘𝗺𝗮𝗶𝗹:
𝗦𝘂𝗯𝗷𝗲𝗰𝘁: Application for [Job Title] - [Your Name]
Dear [Hiring Manager's Name],
I hope this message finds you well. I am writing to express my interest in the [Job Title] position at [Company Name] that I recently came across. I believe my skills and experience align well with the requirements of the role.
With a background in [Relevant Skills/Experience], I am excited about the opportunity to contribute to [Company Name]'s [specific project/department/goal], and I am confident in my ability to make a positive impact. I have attached my resume for your consideration.
I would appreciate the chance to discuss how my background and expertise could benefit your team. Please let me know if there is a convenient time for a call or a meeting.
Thank you for considering my application. I look forward to the opportunity to speak with you.
Best regards,
[Your Name]
✅ 𝗙𝗼𝗹𝗹𝗼𝘄-𝗨𝗽 𝗘𝗺𝗮𝗶𝗹:
𝗦𝘂𝗯𝗷𝗲𝗰𝘁: Follow-Up on My Interview
Hi [Hiring Manager's Name],
I hope you're doing well. I wanted to follow up on the interview we had for the [Job Title] position at [Company Name]. I'm really excited about the opportunity and would love to hear about the next steps in the process.
Looking forward to your response.
Best regards,
[Your Name]
✅ 𝗥𝗲𝗷𝗲𝗰𝘁𝗶𝗼𝗻 𝗘𝗺𝗮𝗶𝗹:
𝗦𝘂𝗯𝗷𝗲𝗰𝘁: Appreciation and Future Consideration
Hi [Hiring Manager's Name],
I hope this message finds you well. I wanted to express my gratitude for considering me for the [Job Title] position. Although I didn't make it to the next round, I'm thankful for the chance to learn about [Company Name]. I look forward to potentially crossing paths again in the future.
Thank you once again.
Best regards,
[Your Name]
✅ 𝗔𝗰𝗰𝗲𝗽𝘁𝗮𝗻𝗰𝗲 𝗘𝗺𝗮𝗶𝗹:
𝗦𝘂𝗯𝗷𝗲𝗰𝘁: Accepting the [Job Title] Position
Hello [Hiring Manager's Name],
I hope you're doing well. I wanted to formally accept the offer for the [Job Title] position at [Company Name]. I'm really excited about joining the team and contributing to [Company Name]'s success. Please let me know the next steps and any additional information you need from my end.
Thank you and looking forward to starting on [Start Date].
Best regards,
[Your Name]
✅ 𝗦𝗮𝗹𝗮𝗿𝘆 𝗡𝗲𝗴𝗼𝘁𝗶𝗮𝘁𝗶𝗼𝗻 𝗘𝗺𝗮𝗶𝗹:
𝗦𝘂𝗯𝗷𝗲𝗰𝘁: Salary Discussion for [Job Title] Position
Hello [Hiring Manager's Name],
I hope this message finds you well. I'm excited about the offer for the [Job Title] role at [Company Name]. I would like to discuss the compensation package to ensure that it aligns with my skills and experience. Could we set up a time to talk about this further?
Thank you and looking forward to your response.
Best regards,
[Your Name]
(Tap to copy)
