mksysb 1. Create image.data and system backup (-X expands /tmp if required): # mksysb -i -X /dev/rmt0 2. Create image.data file with map file and system backup: # mksysb -m /dev/rmt0 3. Create system data but excludes the files listed in /etc/exclude.rootvg: # mksysb -e /dev/rmt0 mkszfile 1. Create /image.data file: # mkszfile mkcd 1. […]
Archives for October 2021
How to find CPU, Memory(RAM), Hard disks, IP address information in AIX
Understanding resource utilization and spare capacity is becoming more important than ever. Processors, Memory are one of the most significant resources among all the available resources in a system, making processor/ memory utilization a critical metric for measuring the performance of a system running a workload. As AIX Admin In your day-to-day admin job we […]
Assertions in Java
In this post, you will learn to: State the use of assert statement. Explain implementation of assertion in code. Explain the use of internal invariants. State the use of control-flow invariants. Explain PreCondition, PostCondition, and Class Invariants Using the ‘assert’ Statement An assertion allows testing the correctness of any assumptions that have been made about […]
User-defined Exceptions in Java
In this post, you will learn to: Explain user-defined exceptions. Explain implementation of an user-defined exceptions. Explain handling and throwing of user-defined exceptions. Exception chaining. User-defined Exceptions User-defined exceptions are custom exceptions. These exceptions are created when predefined exceptions are not sufficient to handle situations specific to an application. User-defined exception classes are subclassed from […]
Exception Handling in Java
In this post, you will learn to: State the use of try-catch block. Describe the use of finally block. State the flow of execution in an exception handling block. Describe the use of throw and throws keyword. Describe the use of multiple catch blocks Using the ‘try-catch’ Block Java supports exception handling mechanism. The code […]
Introduction to Exceptions in Java
In this post, you will learn to: Explain the concept of Exceptions. Identify the different types of Exceptions Causes for Exceptions An exception is an abnormal condition that arises out of an extraordinary situation disrupting the flow of program’s instructions. Exceptions report error conditions in a program. In programs, exceptions can occur due to any […]
Nested Class in Java
In this post, you will learn to: Describe Nested Class. Explain Member Class. Explain Local Class. Explain Anonymous Class Nested Class A nested class is a class defined within another class. It can have access to members of the outer or enclosing class, even if the members are declared private. Nested classes can be used […]
Class Variables in Java
In this post, you will learn to: Describe class variables. Declare and access class variables. Class and instance variables. Describe static methods. Advantages and disadvantages of static methods. State the syntax of static initializers. Class Variables Class variables are declared using the static keyword. All instances of the class share the same value of the […]
Scope of Variables in Java
In this post, you will learn to: Define scope of variables. Describe primitive variables. Describe reference variables. Scope of Variables There are two types of variables in Java. These are as follows: Primitive variable Reference variable Primitive Variables The first type is Primitive variable. A Primitive variable is used to store primitive data type values. […]
Introduction to Java Interfaces
In this post, you will learn to: Discuss the concept of interfaces. Describe how to use interfaces. Explain extending interfaces. Explain IS-A relationship. Introduction to Interfaces An interface in Java is a contract that lays down rules to be followed by the types which implement it. Consider a new employee who joins an organization to […]