Thank you Rob Spoor .. yeah that the point where i did the mistake. i didnt convert the string value to a double. then i corrected the source code, and it did work.. :
class E{
public static void main(String args[]){
double gpa=Double.parseDouble(args[0]);
if(gpa>=3.6)
{
System.out.println("First class");
}
else if(3.59>=gpa && gpa>=3.4)
{
System.out.println("Upper Second class");
}
else if(3.49>=gpa && gpa>=3.00)
{
System.out.println("Lower second class");
}
else if(2.99>=gpa && gpa>=2.00)
{
System.out.println("Pass");
}
else
{
System.out.println("Fail");
}
}
}