មេរៀនទី៣១: strictfp keyword
ពាក្ស strictfp keyword ដែលលោកអ្នកនឹងទទួលលទ្ធផល លើគ្រប់ platform ប្រសិនបើ perform ប្រត្តិបត្តិការក្នុងអថេរ floating-point។
ច្បាប់ត្រឹមត្រូវ code សម្រាប់ strictfp keyword
strictfp keyword អាចអនុវត្តលើ methods, classes និង interfaces.
strictfp class A{}//strictfp applied on class
strictfp interface M{}//strictfp applied on interface
class A{
void m(){}//strictfp applied on method
}
code សម្រាប់ strictfp keyword
strictfp keyword ដែលអាចអនុវត្ត abstract methods, variables ឬ constructors.
class B{
strictfp abstract void m();//Illegal combination of modifiers
}
class B{
strictfp int data=10;//modifier strictfp not allowed here
}
class B{
strictfp B(){}//modifier strictfp not allowed here
}
ច្បាប់ត្រឹមត្រូវ code សម្រាប់ strictfp keyword
strictfp keyword អាចអនុវត្តលើ methods, classes និង interfaces.
strictfp class A{}//strictfp applied on class
strictfp interface M{}//strictfp applied on interface
class A{
void m(){}//strictfp applied on method
}
code សម្រាប់ strictfp keyword
strictfp keyword ដែលអាចអនុវត្ត abstract methods, variables ឬ constructors.
class B{
strictfp abstract void m();//Illegal combination of modifiers
}
class B{
strictfp int data=10;//modifier strictfp not allowed here
}
class B{
strictfp B(){}//modifier strictfp not allowed here
}
Post a Comment