Struts 2 display tag styles quite different and complex so here I am going to consolidating all types of possible styles and different types options in terms of data displaying. Displays a list in an html table, formatting each item in the list according to the Column tags nested inside of this tag. Use […]
Difference between Class.forName() and newInstance() in java
Difference between Class.forName() and newInstance() in java Class.forName() returns the Class-Type for the given name. Means that it will return reference to a class and load the available all static blocks not instance methods. if you are interested only in…
What is the difference between Static Block and Constructor placed in a class?
What is the difference between Static Block and Constructor placed in a class? Static Block Static block of a java class executes for only one time when JVM loads the class irrespective of whether object is created for class…
Most Important HashMap Interview Questions and Answers
In this post I am sharing most important HashMap interview questions along with answers. Java collections package is java.util, this is the most important package and used frequently in most of the projects. What are the methods required for an…
Explain with example to describe when to use abstract class and interface?
Explain with example to describe when to use abstract class and interface? Consider a scenario where all Cars will have 4 tyres and other features can be different. In this case any subclass of Car has to have 4 tyres.…
How can we call the garbage collector?
How can we call the garbage collector? Garbage collector is automatically invoked when the program is being run. It can be also called by calling gc() method of Runtime class or System class in Java
Which algorithm is used by garbage collector?
Which algorithm is used by garbage collector Garbage collector uses many algorithms but the most commonly used algorithm is mark and sweep.
Here I can show you how to access MSSQL server database from SQL developer tool. Generally as you know we can access oracle database directly without any adding or modifying in SQL Developer. But we can’t access MSSQL database directly because Oracle didn’t provide MSSQL server database drivers (JDBC jar) along with SQL developer tool. […]
Here I am sharing admin level top Linux Interview Questions and Answers. Top Linux Interview Questions and Answers Compare Linux & Windows operating systems Criteria Linux Windows Type of OS Open Source Proprietary Customization High level of customization Cannot be modify Security Excellent Cannot be modify What is LILO? LILO is Linux Loader […]
This article helps you to get more information about Tablespace in Oracle along with a few commands which helps in your day to day activity. How to get the list of available Tablespaces SQL> select tablespace_name, sum(bytes)/power(1024,2), sum(maxbytes)/power(1024,2), AUTOEXTENSIBLE from dba_data_files group by tablespace_name, AUTOEXTENSIBLE; This list down all the tablespaces that are available in […]
This article helps you to understand various SVN commands and its usage in Linux environment. How To get the location of SVN: $ whereis svn svn: /opt/CollabNet_Subversion/bin/svn (or) $ which svn svn: /opt/CollabNet_Subversion/bin/svn How to get the SVN help $ svn help usage: svn <subcommand> [options] [args] Subversion command-line client, version 1.8.14. Type […]
In this article I am sharing a list of most useful git commands which are used in day to day activity in every project. Getting & Creating Projects Command Description git init Initialize a local Git repository git clone ssh://[email protected]/[username]/[repository-name].git Create a local copy of a remote repository Basic Snapshotting Command Description git status […]
In this post, we are discussing on how to enable, disable and drop triggers in oracle. Enable ONE Trigger in a table Syntax ALTER TRIGGER <trigger-name> ENABLE; Example ALTER TRIGGER NarayanaTutorial_Trigger ENABLE; Enable ALL Triggers in a table Syntax ALTER TABLE <table-name> ENABLE ALL TRIGGERS; Example ALTER TABLE NarayanaTutorial_TABLE ENABLE ALL TRIGGERS; Disable […]
In this post, we can learn how to create and extract jar and war files in windows command prompt. We can create executable jar with Main class and MANIFEST file by using java commands in windows. In the same way we can create/extract war file by using java commands in windows. Create Jar file without Main class D:\NarayanaTutorial>jar […]