Posts

Sri Lankan IT industry & companies

Image
The Sri Lankan IT industry has emerged as a significant player in the global market, specializing in business process outsourcing (BPO) and serving as an offshore development center for numerous Fortune 500 companies from various regions including North America, Europe, and Asia. The industry is known for its Skilled workforce: Sri Lanka boasts a large pool of highly skilled and qualified IT professionals, many of whom are proficient in various programming languages and technologies. Cost-effectiveness: Compared to other outsourcing destinations, Sri Lanka offers competitive rates for IT services, making it an attractive option for businesses seeking to reduce costs. Strong government support: The Sri Lankan government actively supports the development of the IT industry, providing various incentives and infrastructure improvements to attract foreign investment. Some of the well-known global IT companies with a presence in Sri Lanka include: HSBC IFS Intel Motorola WNS RR Donnelley Vi

A/L Flowchart

Image
Question  AnswerπŸ‘‡πŸ‘‡πŸ‘‡ 😊😊😊

File Handling in Python

r: Opens the file in read-only mode. Starts reading from the beginning of the file and is the default mode for the open() function. rb: Opens the file as read-only in binary format and starts reading from the beginning of the file. While binary format can be used for different purposes, it is usually used when dealing with things like images, videos, etc. r+ : Opens a file for reading and writing, placing the pointer at the beginning of the file. w: Opens in write-only mode. The pointer is placed at the beginning of the file and this will overwrite any existing file with the same name. It will create a new file if one with the same name doesn't exist. wb: Opens a write-only file in binary mode. w+: Opens a file for writing and reading. wb+: Opens a file for writing and reading in binary mode. a: Opens a file for appending new information to it. The pointer is placed at the end of the file. A new file is created if one with the same name doesn't exist. ab: Opens a file for

DevOps

Image
 What containers are & what's important? Containers are simply another method of deploying applications so, it's a development paradigm. where we can actually stick the application along with some of the operating system stuff, inside a container and its self-contained and isolated into itself and therefore. we're able to move it from place to place. you're able to move it from cloud to cloud, a platform to platform, a device to device. The value is that they're able to keep applications isolated and promote portability. containers are not replacing virtualization. This is a common misconception. Why container?

OOP's Polymorphism

 It provides different services but the same name/domain . Polymorphism is implemented by method overloading. Example :  class ploy{     public static void main ( String [] args){         ploy obj = new ploy();         obj.arae( 10 );         obj.area( 5 , 3 );     }     void area( int a){         System.out.println( "area 1 : " + a*a);     }     void arae( int a, int b){         System.out.println( "area 2 " + a*b);     } }

OOP's Constructor

 The constructor is also a method. No return/keywords such as void, int, float etc, are not used before method name. Constructor name also created using class name . No calling required. Constructoer is automatically called while creating an object. Example 01 - file saveAs cons.java compail command - javac cons.java   ↪ java cons     ↪ class cons{     public static void main( String [] args){         cons obj = new cons();     }     cons(){         System.out.println( 'Hello world' );     } } Example 02 - file saveAs  squar.java compail command - javac squar.java   ↪ java  square      ↪ class squar{     public static void main( String [] args){         squar obj1 = new squar( 20 );     }     squar( int a){         System.out.println( "Area = " + a*a);     } }

OOP's Class

Class is a template to create objects. The class consists of attributes and operations. Class Declation  class className{ } Object Creation className objectName = new className(); ex: rectangle smallarea = new rectangle (); Operation / Method No return - void          void area(){          .......           } return - int / string etc.         int area(){         .......     return 0;         }