Class constructor, http://en.wikipedia.org/wiki/Constructor_%28computer_science%29#Java
On Mon, Jul 13, 2009 at 4:32 AM, sindura pulimamidi < [email protected]> wrote: > Hi everyone, > > the below program can executes with out the statements written in red > color > > what is the use of the method in this program....pls tell me > > > public class ConditionalOperator { > > /** Creates a new instance of ConditionalOperator */ > public ConditionalOperator() { > } > > public static void main(String[] args) { > > String status = ""; > int grade = 80; > > status = (grade >= 60)?"Passed":"Fail"; > > System.out.println( status ); > } > > } > > > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
