Author: Webner
Linux – Get full path of a running process
2 ways that I know to get the full path of a process in linux: 1. /proc/ /exe is a symlink to the actual exe. Here’s what I get for a program eclipse running on my machine under pid 4825
Java | int and float overflow and underflow with examples
First we should know what is overflow and underflow. Overflow is a condition where value crosses the maximum prescribed size of a data type. Underflow is a condition where value reaches the minimum prescribed size of a data type. With
Selenium | Take UI screenshots when script is executed
During testing a website with Selenium, function given below can take screenshot that can help us in cases like when testcase fails and we need the screenshot to see what happened on UI. Here is function to take screenshot: public
Java | Wide and Narrow typecast in Java with examples
Cast means converting one data type to another data type. Automatic Type Conversion Automatic type conversion means programmer doesn’t need to write code for the cast. In Automatic Type Conversion, narrower data type is converted to broader data type automatically
Java | static variables, instance variables, final and static
Explain with an example which variables should become instance variables and which others should become static. Also when to use final with static and final without static? (JAVA) INSTANCE VARIABLES: Variables that belong to the object of the class and
Java | Runtime Polymorphism
There are two types of polymorphism: 1) Compile Time Polymorphism (Method Overloading) – Here it is clear at compile time that which method call in the program will invoke which of the methods. 2) Runtime Polymorphism (Method Overriding) – Here
Java | Some basics
How Java achieves platform independence First thing is what platform independence means? It means compiled Java code can run on any OS without change. Now the question is how Java achieves this? Java achieves this with the help of Bytecode
Java | Benefits of declaring SerialVersionUID in your code
SerialVersionUID is a class invariant that is used to validate that the classes on both sides of the wire are the same. During Serialization it marshals an object and sends it over the stream. During marshalling process, the SerialVersionUID is
AWS Amazon CloudFront – How to enable cache for whole site
AWS Amazon CloudFront is a web service that speeds up serving static and dynamic web content like, .html, .css, .php, and image files and videos. It also integrates with other Amazon Web Services like S3, EC2, Elastic Load Balancer and
