Skip to content

Java bro

Java full stack tutorial

  • Home
  • Java
    • Core java
    • Advance java
    • Java examples
  • J2ee
    • Jdbc
    • Servlets
    • Jsp
    • Jstl
  • Frame works
    • Struts 1.x
    • Struts 2.x
    • Hibernate
    • TypeScript
    • Angular
    • ReactJs
  • Spring
    • Spring core
    • Spring DAO
    • Spring ORM
    • Spring AOP
    • Spring MVC
    • Spring Boot
  • Micro services
    • Zuul
    • Cloud config server
    • Hystrix
    • Kafka
    • Redis cache
    • Sleuth
    • Zipkins
  • Interview Q&A
    • Java
    • Jdbc
    • Servlets
    • Jsp
    • Struts
    • Hibernate
    • Spring
    • Micro services
    • Angular
    • React Js
  • Others
    • Servers
    • IDEs
    • Java practice
    • Realtime exceptions
    • Sql Tutorial
    • Sql Queries
    • Domain knowledge
Java bro

Java full stack tutorial

  • Home
  • Java
    • Core java
    • Advance java
    • Java examples
  • J2ee
    • Jdbc
    • Servlets
    • Jsp
    • Jstl
  • Frame works
    • Struts 1.x
    • Struts 2.x
    • Hibernate
    • TypeScript
    • Angular
    • ReactJs
  • Spring
    • Spring core
    • Spring DAO
    • Spring ORM
    • Spring AOP
    • Spring MVC
    • Spring Boot
  • Micro services
    • Zuul
    • Cloud config server
    • Hystrix
    • Kafka
    • Redis cache
    • Sleuth
    • Zipkins
  • Interview Q&A
    • Java
    • Jdbc
    • Servlets
    • Jsp
    • Struts
    • Hibernate
    • Spring
    • Micro services
    • Angular
    • React Js
  • Others
    • Servers
    • IDEs
    • Java practice
    • Realtime exceptions
    • Sql Tutorial
    • Sql Queries
    • Domain knowledge
  • Home
  • Java
    • Core java
    • Advance java
    • Java examples
  • J2ee
    • Jdbc
    • Servlets
    • Jsp
    • Jstl
  • Frame works
    • Struts 1.x
    • Struts 2.x
    • Hibernate
    • TypeScript
    • Angular
    • ReactJs
  • Spring
    • Spring core
    • Spring DAO
    • Spring ORM
    • Spring AOP
    • Spring MVC
    • Spring Boot
  • Micro services
    • Zuul
    • Cloud config server
    • Hystrix
    • Kafka
    • Redis cache
    • Sleuth
    • Zipkins
  • Interview Q&A
    • Java
    • Jdbc
    • Servlets
    • Jsp
    • Struts
    • Hibernate
    • Spring
    • Micro services
    • Angular
    • React Js
  • Others
    • Servers
    • IDEs
    • Java practice
    • Realtime exceptions
    • Sql Tutorial
    • Sql Queries
    • Domain knowledge
  • Realtime Exceptions

PKIX path building failed and unable to find valid certification path to requested target in MAC Os

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

  • vsreenu48
  • June 8, 2022June 8, 2022
  • Realtime Exceptions

No router instance found. You should only use “next/router” inside the client side of your app

use useRouter hook . It may resolve ur proble. import { useRouter } from ‘next/router’;

  • vsreenu48
  • September 1, 2021September 1, 2021
  • Realtime Exceptions

TypeError: First argument must be a string in React

Add default value to property . See the below code we are passing empty string as default value &ltStyledHTML html= {landingPage?.helpCenter?.vocBodyMessage || ”} /&gt

  • vsreenu48
  • February 22, 2021February 22, 2021
  • Threads in java

Create a thread by implementing Runnable interface

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

  • vsreenu48
  • December 18, 2020December 21, 2020
  • Threads in java

Create a thread by extending Thread class

  • vsreenu48
  • December 18, 2020December 18, 2020
  • Threads in java

Life cycle of a thread

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

  • vsreenu48
  • December 18, 2020December 21, 2020
  • Threads in java

Introduction to multi threading in java

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

  • vsreenu48
  • December 18, 2020December 21, 2020
  • Java Collections

List Interface in java

  • vsreenu48
  • December 18, 2020December 18, 2020
  • Java Collections

Collection Interface in java

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

  • vsreenu48
  • December 18, 2020December 21, 2020
  • Java Collections

Hierarchy of collection framework

  • vsreenu48
  • December 18, 2020December 18, 2020
  • Java Collections

Why collection framework in java

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 .

  • vsreenu48
  • December 18, 2020December 21, 2020
  • Java reflection api

Get modifier details of a class at run time in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get package details of a class at run time in java

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 .

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get methods of a class at run time in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get constructors of a class at run time in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get fields of a class at run time in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get interfaces implemented by a 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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get all super classes of a class in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Check if loaded definition is an interface or class

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Get class name at run time in java

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();

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Importance of java.lang.Class

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Java reflection api

Introduction to reflection API in java

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

  • vsreenu48
  • December 18, 2020December 21, 2020
  • Generics tutorial

Wild card characters with super keyword

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.

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Wild card characters with extend keyword

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,

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Wild card characters in java generics

‘?’ 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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Generic methods in java

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,

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Multi bounded types in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Bounded types in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Create custom generic classes in java

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

  • vsreenu48
  • December 18, 2020December 22, 2020
  • Generics tutorial

Generic classes in java

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,

  • vsreenu48
  • December 18, 2020December 22, 2020

Posts navigation

1 … 5 Next

Recent Posts

  • PKIX path building failed and unable to find valid certification path to requested target in MAC Os
  • No router instance found. You should only use “next/router” inside the client side of your app
  • TypeError: First argument must be a string in React
  • Create a thread by implementing Runnable interface
  • Create a thread by extending Thread class
  • Life cycle of a thread
  • Introduction to multi threading in java
  • List Interface in java

Popular posts

  • JBAS011232: Only one JAX-RS Application Class allowed 607 views
  • Type ‘Promise‘ is not assignable to type ‘string[]’ 300 views
  • Convert NCLOB vlaues to CLOB ins sql 300 views
  • Convert Long values to LOB values in sql 200 views
  • Get today date in sql 200 views
  • Get last date of month in sql 200 views
  • Should not consume any form parameter 101 views
  • jspService is exceeding the 65535 bytes limit 101 views

Views

6118

Orchid Store Theme by Themebeez