Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualDevine Caesar

Posted 26 February 2013 - 11:19 AM

To clarify, in terms of Java this will mean direct access to primitive types for the purpose of declaring variables will be removed.  Without direct access to these types every variable you declare will be an Object.  So int for example will no longer be available instead you will have to use the Integer class and create an Object.  The language will still have an internal concept of numbers and the ability to manipulate them obviously but in terms of writing code everything will have to be an Object.
 
Source: The Register: Java won't curl up and die like Cobol, insists Oracle
 

For the Java Development Kit (JDK) 10 or after, a fundamental change is being discussed: making the Java language Object Oriented. This might see the introduction of a unified type system that turns everything into objects and means no more primitives. The JDK is the developer kit that
is officially released by Oracle, based on the work of the Oracle- and IBM-led OpenJDK project

 
For example:
 

public static void main(String[] args)
{
     int appleCount = 10;

     System.out.println("You have " + appleCount + " apples");
}

This will no longer be possible, instead you will have to use Objects:
 

public static void main(String[] args)
{
     Integer appleCount = new Integer(10);

     System.out.println("You have " + appleCount.toString() + " apples");
}

I know this example is unrealistic it's just meant to illustrate the point.


#1Devine Caesar

Posted 26 February 2013 - 11:17 AM

To clarify, in terms of Java this will mean direct access to primitive types for the purpose of declaring variables will be removed.  Without direct access to these types every variable you declare will be an Object.  So int for example will no longer be available instead you will have to use the Integer class and create an Object.  The language will still have an internal concept of numbers and the ability to manipulate them obviously but in terms of writing code everything will have to be an Object.
 
Source: The Register: Java won't curl up and die like Cobol, insists Oracle
 

For the Java Development Kit (JDK) 10 or after, a fundamental change is being discussed: making the Java language Object Oriented. This might see the introduction of a unified type system that turns everything into objects and means no more primitives. The JDK is the developer kit that
is officially released by Oracle, based on the work of the Oracle- and IBM-led OpenJDK project

 
For example:
 

public static void main(String[] args)
{
int appleCount = 10;

System.out.println("You have " + appleCount + " apples");
}

This will no longer be possible, instead you will have to use Objects:
 

public static void main(String[] args)
{
Integer appleCount = new Integer(10);

System.out.println("You have " + appleCount.toString() + " apples");
}

I know this example is unrealistic it's just meant to illustrate the point.


PARTNERS