Final/Const in Java
May 2, 2017Why use final / constant variable? Currently in Java, developers create constant variables i.e. variables whose value don’t change with... View Article
Why use final / constant variable? Currently in Java, developers create constant variables i.e. variables whose value don’t change with... View Article
Let’s Jump to Code Vehicle.java file in folder path: K:\Constructor import model.Bike; import java.util.List; import java.util.ArrayList; public class Vehicle { public... View Article
Let’s Start with Something Simple Vehicle.java file in folder path: K:\Instance Variable import model.Bike; import java.util.List; import java.util.ArrayList; public class Vehicle... View Article
Let’s see the Code import java.util.Scanner; public class Calculator { public static void main( String[] args ){ Calculator c =... View Article
What is Encapsulation? Packaging complex code or functions for ease of programming. Putting all code in static main is not... View Article
Understanding through Code import java.util.HashMap; import java.util.Map; public class HashMapDemo { public static void main( String[] args ){ Map<String, String>... View Article
Understanding through Code import java.util.List; import java.util.ArrayList; public class ArrayListDemo { public static void main( String[] args ){ List<String> list... View Article
Passing Values to Methods Passing to a method by copy The method receives a copy of variable. Passing to a... View Article
Functions are called methods in Java You can create a number of methods with same name in Java. But, you... View Article
Exception When your code can throw an exception (error on run time), you can wrap that code in try and... View Article