what is the future perspectives of Java
Java is an inanimate thing, it has no objective perspective on its future.
class WoodFurn { String type="teak"; String finish="coarse"; void showDet() { System.out.println("Instance of class "+this.getClass().getName()); System.out.println("====================================="); System.out.println("type of wood-"+type); System.out.println("Finish is -"+finish); } } class WoodTable { int legs=4; void show() { System.out.println("legs -"+legs); } public static void main(String args[]) { WoodTable t=new WoodTable( ); t.show( ); } }