Category: Java Frameworks
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
Java | ‘default’ method implementation for methods in Java interfaces
Default method, a new concept used for interfaces has been added to Java 8. Purpose: In Java 7 or older, classes implementing an interface were forced to implement each method of the interface. Consider a long running project in which an
Does Java support call by reference?
Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate
Selenium | how to upload a csv file with Selenium script
In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage: Code to automatically select a csv file and then click Submit button is
Java | difference among return, continue, break and System.exit in Java
Question: What is the difference between return, continue, break and System.exit statements in Java? Answer: The differences among these 4 statements are described here:
Enum in Java
What is Enum/Enumeration? Enum/Enumeration is a data type in Java which is used to store a fixed set of constant values. For example, number of days in a week or a set of arithmetic operators (addition, subtraction, multiplication and division)
Java | Deep cloning object containing list of other objects
Suppose you have a class like this: public class Student { private String name; private int rollNumber; private int grade; private List subjects; } This is the Subject class public class Subject { private String sName; } You have an
Hadoop | Creating and running Mapreduce Programs in Eclipse and from Command line
We can create and run the java Mapreduce programs in Eclipse as well as from command line. Using Eclipse – For Eclipse first we have to install the plugin for hadoop mapreduce which inherits the libraries required to implement the