How to find Constraints on Oracle database

You need to find constraints of oracle database. Use below query for that.

FROM user_cons_columns
WHERE table_name = ”;

Further if you want to find more details on constraints then use below query.



Consume REST Web Service via Android

Lets say you have created an activity called

You need to import Async task to run a web service call.

import android.os.AsyncTask;

And inside the controller class you need to create sub class for async task. Below I have added that sub class.


Java Upcasting

When reference variable of a parent class refers to an object of child class then we call it upcasting.

Example is below.

Class Bank(){

Class ComBank extends Bank(){

Class BankModule(){
public static void main(String args[]){
Bank bank = new ComBank(); // This is the process of upcasting

Java Static Blocks, Variables and Methods

Static Member :-

What is a static member ? Static member is a member of a class that which is not interact or associate of  an instance of a class. This can be access without creating a object of a class. Moreover static members are being executed when class load in to the memory.  Further static members are accessible from any where and certain member is common for every instances. All objects use some instance of a static member.



What is keycloak ?

This is an authentication service provided by Apache and  developers no need to worry about high secure user authentication if they are going to use keycloak.

They can set up keycloak server and get connect with keycloak server when authenticating they applications.

How to use Keycloak :-

01. Download keycloak

02. Unzip or gunzip the tar file.

03. Go  to bin and run standalone


04. Then load http://localhost:8080/auth and create admin user. Now you should be able to login as admin via http://localhost:8080/auth/admin/

05.  Now you have to create realm user as below.


06. Now create user under  the newly created realm




Now you can login to that user account under below url.


07. Now you have to a client add-client.png

This client is the web application that developer have developed and which has authentication panel to login but need to secure by keycloak. Once created the client you can edit that client profile. Click on installation tab and select Keycloak OIDC JSON and then click download button.

Downloaded file would be some thing similar to below.

“realm”: “demo”,
“auth-server-url”: “http://localhost:8080/auth”,
“ssl-required”: “external”,
“resource”: “testclient”,
“public-client”: true

This file can be placed where your project HTML file placed.

Install Jboss :- Follow below URL





































This is simply if else condition which will update html DOM elements as you need.
But more clarification this is not completely differ from ngShow or ngHide. Because this is not updating DOM elements actually.
What this does is remove existing CSS and newly adding CSS as recreated DOM. This case ngIf will completely remove the scope of DOM and reinitialize it.