Posts

Akka with Scala Questions

Any is the supertype of all types, also called the top type. Any has two direct subclasses: AnyVal and AnyRef. Double, Float, Long, Int, Short, Byte, Char, Unit, and Boolean. diff b/w val and var and use of lazy in val How to create a multiple constructor for a class How to compare specific element in case class What is the use of final in Scala Is trait can extend class get list running thread under supervisor How to create parameter list based method +++ patern guard will support user defined method How Seq class implemented to accept many varble as parameter How to get list of child actor ? How to get all running actor under user actor? New in SCala Package object object creation by apply method Function has Type specification not only parameter Parameter list for method Constructor parameter are by default become the class members Preemitive and cooperative scheduling Different way to use props for creating actor Interacting remote ac...

Understand the characteristics of 'final' and 'val' in Scala

keyword 'final' is stop from extend a class and override the method/value keyword 'val' is restrict from reassign of the variable. so it can react as a constant with the class. keyword 'override' is used to override the super class method and variables. combined keyword 'final val' is used to create a Constant never ever change keyword 'final' is not allowed for member of abstract class