Type Casting in java?

upcasting

Type Casting: Type casting means to explicitly convert one type of data to another type of data.  Type casting has 2 types: Upcasting Downcasting Upcasting: Converting lower type... read more ?

Programming Interview Questions on loops

Think Output: Program #1: package com.instanceofjavaforus;   public class Loops {   public static void main(String args[]){               int i=0;               for( i=0;i<5;i++){   ... read more ?

Convert Byte Array to String

To convert byte array to string we have a constructor in String class which is taking byte array as an argument. So just we need to pass byte... read more ?

Convert values of a Map to a List

Java How To Convert Map Values To List In Java Some Different Ways Below are some common methods for doing so:1. How to use values() with ArrayListYou can... read more ?

Map to list in java example

package com.instanceofjavaforus; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;   public class MapKeyToList {    Map<Integer, String> map;    public MapKeyToList(Map<Integer, String> map) {  this.map = map;... read more ?

Marker Interfaces in java

Marker interface: The interfaces using which we explicitly mention or mark certain properties to the object are known as marker interface. An interface that is used to check... read more ?

Select Menu