Posts

How to fill air in an Air pillow in easy way

Image
  How to fill air in an Air pillow in easy way Following video explains how to fill air in Air pillow in an easy way Hope this video will helpful to you Thanks, Vishnu V

How to resolve some of your fonts cannot be saved with the presentation in MS office

Image
 How to resolve some of your fonts cannot be saved with the presentation in MS office The below video explains how to resolve some of your fonts cannot be saved with the presentation in MS office

Exception Handling using try catch

Image
 Exception Handling using try catch PROGRAM: class tryCatchExceptionHandling {     public static void main ( String args[])     {         try         {             int a= 4 / 0 ;             System.out.println( "This is try Block" ) ;         }         catch (ArithmeticException e)         {             System.out.println( "ArithmeticException => " +e.getMessage()) ;         }     } } /* OUTPUT ArithmeticException => / by zero */

enum in Java

Image
 enum in Java PROGRAM: enum variety {     Veg , Chicken , Mutton } class Biriyani {     variety biriyaniVariety ;     public Biriyani ( variety biriyaniVariety )     {         this . biriyaniVariety = biriyaniVariety ;     }     public void orderBiriyani ()     {         switch ( biriyaniVariety )         {             case Veg :                 System . out . println ( "I ordered a Veg Biriyani. " ) ;                 break ;             case Chicken :                 System . out . println ( "I ordered a Chicken Biriyani. " ) ;                 break ;             case Mutton :       ...

Nested or Inner Class in Java

Image
 Nested or Inner Class in Java PROGRAM: class Mobile {     class Sim {         String SimName = "Jio" ;         String getName ()         {             return SimName ;         }     }     class App     {         String AppName = "MyJio" ;         String getName ()         {             return AppName ;         }     } } public class InnerClass {     public static void main ( String args [])     {         Mobile mobile = new Mobile () ;         Mobile . Sim sim = mobile . new Sim () ;         Mobile . App app = mobile . new App () ;         System . out . println ( "sim name is " + sim . getName...

Encapsulation in Java

Image
 Encapsulation in Java  PROGRAM: class Area {     int length ;     int breadth ;     Area ( int length ,int breadth )     {     this . length = length ;     this . breadth = breadth ;     }     public void getArea ()     {         int area = length * breadth ;         System . out . println ( "Area :" + area ) ;     } } public class EncapsulationExample {     public static void main ( String args [])     {         Area Rectangle = new Area ( 3 , 4 ) ;         Rectangle . getArea () ;     } } /* OUTPUT Area :12 */