For example, length() method of string can be called without parameters.
scala> "Hello".length
val res45: Int = 5
If you like to use (), you can do so.
scala> "Hello".length()
val res46: Int = 5
Previous Next Home
This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
No comments:
Post a Comment