• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Archives for October 2021

Backup Command Examples in AIX

by admin

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. […]

Filed Under: AIX

How to find CPU, Memory(RAM), Hard disks, IP address information in AIX

by admin

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 […]

Filed Under: AIX

oracleasm Command Examples (Cheat Sheet)

by admin

After the storage administrator provides you with the disk for the database and presents the disk to the server, you want to stamp the disks as ASMLIB disks using the oracleasm command. All options to the oracleasm script that are not read-only actions require root privileges to execute. Such options include commands to configure, create, […]

Filed Under: ASM, oracle

Assertions in Java

by admin

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 […]

Filed Under: Java

User-defined Exceptions in Java

by admin

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 […]

Filed Under: Java

Exception Handling in Java

by admin

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 […]

Filed Under: Java

Introduction to Exceptions in Java

by admin

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 […]

Filed Under: Java

Nested Class in Java

by admin

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 […]

Filed Under: Java

Class Variables in Java

by admin

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 […]

Filed Under: Java

Scope of Variables in Java

by admin

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. […]

Filed Under: Java

Next Page »

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright