aspose file tools*
The moose likes Java in General and the fly likes Java as a procedural language Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java as a procedural language" Watch "Java as a procedural language" New topic
Author

Java as a procedural language

Ramprasad Bhat
Greenhorn

Joined: Feb 26, 2010
Posts: 1
Just like C can simulate OOPs by using the concept of 'struct', can java too have only static methods and private constructors in all classes, pass only primitives and thereby make itself
essentially procedural ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42945
    
  68
Yes.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

You won't be able to use String though; you will need to replace it with char[]. You can't use System.out.println() either because that's calling a method of an object. So yes, you can but you will be very, very limited in what you can do.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java as a procedural language