Scala Singleton Object and Companion Object
Singleton Object There is no static concept in Scala.A Singleton Object is a class that has exactly one instance. It[…]
Read moreAmplify your java knowledge with javagyansite
Singleton Object There is no static concept in Scala.A Singleton Object is a class that has exactly one instance. It[…]
Read moreUnlike an array or list, a tuple can hold objects with different types .These are also immutable. Here’s a tuple[…]
Read moreImplicit class is used to add a new behaviour to an existing object without modifying that object. These newly added[…]
Read morestrictfp is one of the keywords introduced in Java to ensure portability and to restore platform independency. Floating point calculations[…]
Read moreReference Type Casting Objects of classes also can be cast into objects of other classes when the source and destination[…]
Read moreWe have the following numeric primitive types: Apart of the above, we have the non numeric primitive type “char” :[…]
Read moreWhenever methods are called stack is formed and whenever an exception is first thrown from the top of the stack[…]
Read morethrow An application can explicitly throw exception using the throw keyword.We can use throw for explicitly throwing custom exceptions. The syntax[…]
Read moreExceptions thrown during execution of the try block can be caught and handled in a catch block. A finally block[…]
Read moreThe automatic conversion of primitive data types into its equivalent Wrapper type is known as boxing and opposite operation is[…]
Read more