DEV Community

Cover image for 50+ Core Java Interview Questions with Answers for Programmers

50+ Core Java Interview Questions with Answers for Programmers

javinpaul on August 06, 2019

Disclosure: This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided i...
Collapse
 
helenanders26 profile image
Helen Anderson •

Hi @javinpaul,

Please read through the updated #beginner tag guidelines.

Promotional Guidelines

Articles should NOT primarily promote an external work, such as a Udemy course, website, or book (yours or someone else's). This is what Listings is for.

It IS acceptable to include a brief (1-2 sentence) plug for another resource at the bottom of your article, so long as the article contains complete and substantial content in its own right.

If you want to write up a list of resources (paid or free) for beginners, this IS acceptable on the following conditions:

Resources should be by at least three different distinct authors/creators. (Don't just make a list all of one person's work.)

Clearly indicate which resources are FREE (no cost or data whatsoever), which require personally identifiable information PII, and which cost money.

Do not use personal affiliate links to monetize. Use the exact same URLs that anyone else could provide.

It should be clear at the first paragraph that the article contains promotional links.

Collapse
 
javinpaul profile image
javinpaul •

Hello Helen,

Thx for the reminder, I have added the disclosure as "Disclosure: This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article."

Does it suffice? Or, do I need to remove the beginner tag altogether?

Regards
Javin

Collapse
 
codemouse92 profile image
Jason C. McDonald •

Affiliate links are allowed on DEV as long as they're disclosed, but we strongly discourage them on #beginners. Is there any way you can change them to "the exact same URLs that anyone else could provide"?

Thread Thread
 
javinpaul profile image
javinpaul •

Hi Jason, I have taken note of this for future posting. thx

Thread Thread
 
codemouse92 profile image
Jason C. McDonald •

Don't forget, you can also edit your post. (Don't leave things as they are please.)

Collapse
 
javinpaul profile image
javinpaul •

Hello Yuma's Papa, Thanks for the comment. Well, I have blogged about it before on my blog, you may like to check Weak reference vs soft reference vs phantom reference

Collapse
 
lprakashv profile image
Lalit Vatsal •

30 -> It should be final class instead of private constructor.

Collapse
 
conaxinfotech profile image
Satyam Jaiswal •

Thanks for sharing these important quetions. also practice core java interview questions for freshers.

Collapse
 
belverus profile image
Belverus •

Gold mine here! Thank you for the share.

Collapse
 
salyadav profile image
Saloni Yadav •

Love this compilation!
The 49th answer was lit! Hahaha. Nice one, and thanks for writing this article. Bliss.

Collapse
 
kadiyakashyap profile image
Kashyap Kadiya •

How many String objects are created in the code?

Two String objects are created there.
1) String pool and 2) Heap memory.