Skip to content
Oracle Object and API and Exams

Category: Static Member Types

  1. Browse

    • Home
    • Static Member Types

07/22/2024 Rivka Scheinberg Post in Determining the Range,Garbage Collection,Implementing an Interface,Non-Static Member Classes,Oracle Exams,Static Member Types Leave a Comment on Incidental Whitespace – Selected API Classes

Incidental Whitespace – Selected API Classes

Incidental Whitespace So far the lines in the text blocks have all been left-justified. This need not be the case. Indentation can be used if desired. However, one needs to be careful as incidental whitespace from each line is removed…

Continue Reading

11/22/2023 Rivka Scheinberg Post in Oracle Exams,Static Member Types Leave a Comment on Using Qualified Name of Nested Types – Nested Type Declarations

Using Qualified Name of Nested Types – Nested Type Declarations

Using Qualified Name of Nested Types The qualified name of a (static or non-static) member type includes the names of the enclosing types it is lexically nested in—that is, it associates the member type with its enclosing types. In Example…

Continue Reading

04/22/2023 Rivka Scheinberg Post in Determining the Range,Oracle Exams,Static Member Types Leave a Comment on Accessing Members in Enclosing Context – Nested Type Declarations

Accessing Members in Enclosing Context – Nested Type Declarations

Accessing Members in Enclosing Context An implicit reference to the enclosing object is always available in every method and constructor of a non-static member class. A method or constructor can explicitly specify this reference using a special form of the…

Continue Reading

12/22/2022 Rivka Scheinberg Post in Garbage Collection,Oracle Exams,Static Member Types Leave a Comment on Overview of Nested Type Declarations – Nested Type Declarations

Overview of Nested Type Declarations – Nested Type Declarations

9.1 Overview of Nested Type Declarations A type declaration allows a new reference type to be defined. A type declaration can either be a top-level type declaration or a nested type declaration. Figure 9.1 gives an overview of the different…

Continue Reading

09/22/2022 Rivka Scheinberg Post in Implementing an Interface,Oracle Exams,Static Member Types Leave a Comment on Static Member Types – Nested Type Declarations

Static Member Types – Nested Type Declarations

9.2 Static Member Types Declaring Static Member Types Static member types can be declared in top-level type declarations, or within other nested types. For all intents and purposes, a static member type is very much like a top-level type. A…

Continue Reading

09/22/2022 Rivka Scheinberg Post in Non-Static Member Classes,Oracle Exams,Static Member Types Leave a Comment on Constructing BigDecimal Numbers – Selected API Classes

Constructing BigDecimal Numbers – Selected API Classes

Constructing BigDecimal Numbers Selected constructors of the BigDecimal class are shown below. BigDecimal(int value)BigDecimal(long value)BigDecimal(double value) Create a BigDecimal with the decimal number representation of the specified value. Note that these constructors can result in a loss of precision if…

Continue Reading

07/22/2022 Rivka Scheinberg Post in Determining the Range,Garbage Collection,Implementing an Interface,Non-Static Member Classes,Oracle Exams,Static Member Types Leave a Comment on Exponential Functions – Selected API Classes

Exponential Functions – Selected API Classes

Exponential Functions Click here to view code image static double pow(double d1, double d2) Returns the value of d1 raised to the power of d2 (i.e., d1d2). Click here to view code image static double exp(double d) Returns the exponential…

Continue Reading

01/22/2022 Rivka Scheinberg Post in Oracle Exams,Static Member Types Leave a Comment on Accessing Declarations in Enclosing Context – Nested Type Declarations

Accessing Declarations in Enclosing Context – Nested Type Declarations

Accessing Declarations in Enclosing Context Declaring a local class in a static or a non-static block influences what the class can access in the enclosing context. Accessing Local Declarations in the Enclosing Block Example 9.10 illustrates how a local class…

Continue Reading

09/22/2021 Rivka Scheinberg Post in Determining the Range,Oracle Exams,Static Member Types Leave a Comment on The StringBuilder Class – Selected API Classes

The StringBuilder Class – Selected API Classes

8.5 The StringBuilder Class Although there is a close relationship between objects of the String and StringBuilder classes, these are two independent final classes, both directly extending the Object class. Hence, String references cannot be stored (or cast) to StringBuilder…

Continue Reading

03/22/2021 Rivka Scheinberg Post in Garbage Collection,Oracle Exams,Static Member Types Leave a Comment on Static Local Types – Nested Type Declarations

Static Local Types – Nested Type Declarations

9.5 Static Local Types It is possible to declare local interfaces, local enum types, and local record classes. However, these local nested types are implicitly static—as opposed to local classes that are never static. A local class declared in a…

Continue Reading

Posts navigation

Older posts

Recent Posts

  • Incidental Whitespace – Selected API Classes
  • Implementing an Interface – Nested Type Declarations
  • Instantiating Anonymous Classes – Nested Type Declarations
  • Accessing Declarations in Enclosing Context – Nested Type Declarations
  • Garbage Collection – Object Lifetime

Recent Comments

No comments to show.

Cateogries

Archives

Contact us [email protected] | Design & develop by AmpleThemes