Download certificate from chrome browser Open chrome browser Open google.com Click on lock icon in the left side of address bar Click on connection is secure Click on certificate is
use useRouter hook . It may resolve ur proble. import { useRouter } from ‘next/router’;
Add default value to property . See the below code we are passing empty string as default value <StyledHTML html= {landingPage?.helpCenter?.vocBodyMessage || ”} />
We can create thread in the following two ways . 1) By extending Thread class2) By implementing Runnable interface In this tutorial we are going to learn how to create
A thread is an independent path of execution of a program. We can run multiple threads simultaneously within a program . A thread can be in one of the below
Multitasking : Executing multiple tasks at the same time is called multi tasking . Here task can be program . Even multi tasking and multi processing words are being used
1) Collection interface is child of Iterable interface . 2) Collection interface provided the most common methods , which can be applied for any collection object 3) Following is the
In real time programming , Some times we need to group individual objects into single unit . We can achieve this using arrays . But arrays have below limitations .
In java, many modifiers are there, those are: 1) private2) protected3) public4) default5) Abstract6) Final7) Synchronised8) Volatile9) Static10) Native11) Transient default is not a keyword. If you don’t specify any
Package is collection of classes , interfaces and sub packages. Package must be a first statement of a class. To get package details getPackage() method is given in java.lang.Class .
In this tutorial we are going to learn how to get method details of a class . In java, methods are classified into two types they are . 1) Instance
In this tutorial we are going to learn how to get constructor and it’s parameter of a class . See the below example . package com.java; import java.lang.reflect.Constructor; class Sample
In this tutorial we are going to learn how to get all fields of a class . To get fields of a class , getDeclaredFields() method was provided in java.lang.Class
In this tutorial we are going to learn hot get interfaces implemented by class at run time . To get interfaces implemented by class , getInterfaces() method was provided in
In this tutorial we are going to learn , how to get all super classes of a class . To get super class of a class , getSuperclass() method was
In this tutorial we are going to check wheather loaded class is an interface definition or class definition . To check weather the .class file is as interface definition or
In this article we wre going to learn how to get class name of given object. package com.java; public class Sample { public void printClassName(Class c){ String cname = c.getName();
Every time a class was loaded into JVM , JVM creates a java.lang.Class object with the name ‘class’ in that class , that contains all the meta data of loaded
Reflection API is a collection of classes and interfaces given by SUN ,to get a meta data of a class at runtime. For example, we have a runtime class and
If we want to force the method to allow particuler type list or it’s super classes type list as parameter we have to use super keyword. See , below example.
In previous tutorial, we have seen how to use wild card character . Wild card character allows to pass any type of list as parameter to the method . Then,
‘?’ is used as wild card character in java generics concept . Before going to learn use of the wild card character, let’s see the sample below. import java.util.ArrayList; import
Before jdk 1.5 ArrayList class is defined as follows. class ArrayList {add(Object o) ;Object get(int index);– –} ➩ See the above code . The argument of add() method is Object,
In previous tutorial we used single class or interface as bounded type. But we can apply multiple bounded types at a time. See the below example. public class Sample<T extends
In this tutorial we are going to learn, What is bounded types and how to use it. See the below example. package sree; import java.util.Date; public class Sample<T> { T
In this tutorial we are going to learn, how to create custom generic class. See the below example. package sree; public class Student { String name; String id ; public
Before jdk 1.5 ArrayList class is defined as follows. class ArrayList {add(Object o) ;Object get(int index);– –} ➩ See the above code . The argument of add() method is Object,