Three Questions for You


1. Can you code like this?

System.out.println(pow(2,4)); // Math class is not written

instead of traditional

System.out.println(Math.pow(2,4)); // Math is written

Ans: Yes, it is possible from JDK1.5 version with a new feature known as static imports.

2. Can you use C-lang printf() in Java with all %d and %s etc options.?
Ans: Yes, it is possible from JDK1.5 version.

3. Can you use C-lang enums in Java?
Ans: Yes, it is possible from JDK1.5 version.

Leave a Comment

Your email address will not be published.