Posts tagged "Core Java Interview Questions "

Tag Archives: Core Java Interview Questions

Does JVM create object of Main class ?

Does JVM create object of Main class ? It’s a common and important Interview Question in Java or Automation QA Interview. The answer of this is “NO“, JVM doesn’t create the Object of the Main Class.   Let’s consider the following program:-

Output: Hello   We have studied that the reason for main() static in … Continue reading Does JVM create object of Main class ?

20 Core Java Interview Questions for Fresher, 1 to 2 Yrs Exp

1. Which data type you should use to represent currency in Java? Answer – Please tell him/her long or BigDecimal because if you say double, then you need to convince them about rounding and how do you avoid floating point issues. This is one of common mistake we make until they are familiar with the BigDecimal class … Continue reading 20 Core Java Interview Questions for Fresher, 1 to 2 Yrs Exp