MyClass.java
 

public class MyClass {
  public static void main(String[] args) {
    float f1 = 35e3f;
    double d1 = 12E4d;
    System.out.println(f1);
    System.out.println(d1);  
  }
}

Result:
35000.0
120000.0