Posts

Scala Tutorial - Scala First Scala Programs We can execute Scala code by first compiling it using the scalac command line tool. object HelloWorld { def main(args: Array[String]) { println( "Hello,World!" ) } } Note A semicolon at the end of a statement is usually optional. The main method is defined in an object, not in a class. Scala program processing starts from the main method, which is a mandatory part of every Scala program. The main method is not marked as static . The main method is an instance method on a singleton object that is automatically instantiated. There is no return type. Actually there is Unit, which is similar to void, but it is inferred by the compiler. We can explicitly specify the return type by putting a colon and the type after the parameters: def main(args: Array[String]) : Unit = { } Scala uses the def keyword to tell the compiler that this is a method. There is no access level modifier in S...

Basic

Basic Scala Tutorial Java Design Patterns Tutorial Java Object Oriented Design Tutorial Java Data Type Tutorial Java I/O Tutorial Java XML Tutorial Java Collection Tutorial Java Regex Tutorial Java Format Tutorial Java Reflection Tutorial Java Language Tutorial Java Java Tutorial Jar File Download Java Products Java by API SCJP Java Free Code