Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Programming Object-Oriented way

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good Morning,

I had seen quite a lot of Java code & written some.
Most of the code I saw/see & I write, it is the Procedural way.
There will be a method of 400 loc, with if-elses, whiles etc and all..implementing some business logic..
How can I learn to program Java in Object-oriented way.

Any resources on-line/book names would be greatly helpful.

Thanks.
 
Kumara Sharma
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob - I had actually submitted the request and cancelled it to change the subject.
Dint' figure out that 2 posts got created with the old subject and the new one.

Thanks.
 
Marshal
Posts: 72044
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

For books: start here.
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am a bit surprised by your question, my experience has been that everywhere I look books/tutorials are reinforcing object-oriented programming, it is the heart of Java(or backbone maybe? **insert witty metaphor here).

Assuming you have at least some background with java, check out Head First Design Patterns.

Welcome to Java Ranch!
 
Campbell Ritchie
Marshal
Posts: 72044
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My experience is that there are lots of books and tutorials which teach procedural programming in Java. Or at least semi-procedural.
 
Bobby Smallman
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, I guess my library of books were mostly suggested by one individual and hence follow similar styles in general. I retract my surprise... from to
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kumara Sharma wrote:Good Morning,

I had seen quite a lot of Java code & written some.
Most of the code I saw/see & I write, it is the Procedural way.
There will be a method of 400 loc, with if-elses, whiles etc and all..implementing some business logic..
How can I learn to program Java in Object-oriented way.

Any resources on-line/book names would be greatly helpful.

Thanks.



There are lots of books on OOAD, the best i have read is "Applying UML and patterns" by Craig Larman, but before reading this book you read head first OOAD.
After you read both the books, then you can consider reading Domain Driven Design by Eric Evans & Patterns of Enterprise architecture by martin fowler to get a bigger picture of good design principles.


Regards,
John
 
Campbell Ritchie
Marshal
Posts: 72044
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bobby Smallman wrote:Hmm, I guess my library of books were mostly suggested by one individual . . .

You're lucky to have a friend or teacher who recommended decent books then
 
reply
    Bookmark Topic Watch Topic
  • New Topic