Monday 18 December 2017

Can we compile and execute a java program without a class??

Ans: Yes, we can compile and execute without a class. Let’s see the following code:

Test43.java
enum Test43{
;  
public static void main(String[] args)
{
System.out.println("Silan Technology");
}

}

Output
Silan Technology

Friday 8 December 2017

JAVA 9 Features

JAVA 9 Features :

1. Modularity -- jigsaw

2. REPL --  JShell

3. try with resource enhancements

4. Factory methods in collection

5. private methods in interface

6. Stream API enhancements

7. Http 2 Client(java.util.http)

8. G1 garbage collector