• 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

Introduction to Java Interfaces

by admin

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

Filed Under: Java

Using ‘final’ Keyword in Java

by admin

In this post, you will learn to: Describe final variables. Describe final methods. State the purpose of final classes. ‘final’ Variables Many programming languages have a specific keyword to define constant identifiers or to hold values that are not likely to change during the execution of the program. In Java, the final keyword is used […]

Filed Under: Java

Using ‘abstract’ Keyword in Java

by admin

In this post, you will learn to: State the use of abstract methods. Explain the purpose of abstract classes. ‘abstract’ Methods When a method has only declaration and no implementation, that is, no statements in the body, then it is called an abstract. An abstract method in Java is prefixed with the abstract keyword. An […]

Filed Under: Java

Overloading of Methods in Java

by admin

In this post, you will learn to: Explain the concept of overloading. Describe overloading using different number of parameters and same data types. Describe overloading using same number of parameters and different data types. Discuss constructor overloading. State the use of this keyword. Concept of Overloading Method overloading is the ability of a class to […]

Filed Under: Java

Introduction to Java Inheritance

by admin

In this post, you will learn to: Explain the concept of inheritance. State the purpose of method overriding. State the use of a super keyword. Explain covariant return types. Inheritance in Real World In a family, the traits of parents are often inherited by their children. In addition to having unique traits and behavior of […]

Filed Under: Java

Java Field and Method Modifiers

by admin

In this post, you will learn to: Define field and method modifiers. State the use of volatile modifiers. Explain the use of native modifiers. Describe the transient modifier and its use. List the rules for using access control specifiers. Field and Method Modifiers Field and method modifiers are keywords used to identify fields and methods […]

Filed Under: Java

Java Access Modifiers

by admin

In this post, you will learn to: State the purpose of access modifiers. Identify the use of public access specifier. State the purpose of private access specifier. State the use of protected access specifier. State the use of default or package access specifier. List the rules for using access specifiers. Access Modifiers Access specifiers or […]

Filed Under: Java

Introduction to Java Packages

by admin

In this post, you will learn to: Identify the features of packages and their types. State the steps for creating and using user-defined packages. Explain static imports A Java package is a group of related classes and interfaces organized as one unit. The fully qualified name of the class includes the package it belongs to. […]

Filed Under: Java

Java String Classes – StringBuilder and StringTokenizer

by admin

In this post, you will learn to: Explain StringBuilder class and its methods. Explain StringTokenizer class and its methods. ‘StringBuilder’ Class The StringBuilder class provides various methods to manipulate the string object. Objects of StringBuilder class are growable and flexible. Characters or strings can be inserted in the StringBuilder object and they can also be […]

Filed Under: Java

Java Strings Basics

by admin

In this post, you will learn to: Describe strings. Describe the various methods of String class. Describe a String array and its use. Describe command line arguments in Java and their uses. Consider an application, that maintains employee information, such as Employee ID, name, type of work and salary details. With the help of the […]

Filed Under: Java

« Previous Page
Next Page »

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright