Hi, Can I return more one statement from the function? I want to learn OOP basic concept so i can use for java. Is any good book suggestion? I want to learn very fast , so i don't want to go in details but i want to clear some concept of OOPs. Thanks Angela
Return statement: Depends on what you mean. You can have more than one return statement in a function but it only returns one variable (though the variable may contain a set of variables). String myMethod( boolean toggle) { if (toggle) return "yep"; else return "nup"; } Books: If you are after a personal opinion then hopefuly others will give good advice. If you are interested in reading book reviews then try this site's review of books. http://www.javaranch.com/books.jsp