All Methods Static Methods Instance Methods Concrete Methods Modifier and TypeMethod and Description Casts this Show
T
cast(Object obj) Casts an object to the class or interface represented by this boolean
desiredAssertionStatus() Returns the assertion status that would be assigned to this class if it were to be initialized at the time this method is invoked. static Class<?>
forName(String className) Returns the static Class<?>
forName(String name,
boolean initialize,
ClassLoader loader) Returns the AnnotatedType[]
getAnnotatedInterfaces() Returns an array of AnnotatedType
getAnnotatedSuperclass() Returns an <A extends Annotation>
getAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null. Annotation[]
getAnnotations() Returns annotations that are present on this element. <A extends Annotation>
getAnnotationsByType(Class<A> annotationClass) Returns annotations that are associated with this element. String
getCanonicalName() Returns the canonical name of the underlying class as defined by the Java Language Specification. Class<?>[]
getClasses() Returns an array containing ClassLoader
getClassLoader() Returns the class loader for the class. Class<?>
getComponentType() Returns the Constructor<T>
getConstructor(Class<?>... parameterTypes) Returns a Constructor<?>[]
getConstructors() Returns an array containing <A extends Annotation>
getDeclaredAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type if such an annotation is directly present, else null. Annotation[]
getDeclaredAnnotations() Returns annotations that are directly present on this element. <A extends Annotation>
getDeclaredAnnotationsByType(Class<A> annotationClass) Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present. Class<?>[]
getDeclaredClasses() Returns an array of Constructor<T>
getDeclaredConstructor(Class<?>... parameterTypes) Returns a Constructor<?>[]
getDeclaredConstructors() Returns an array of Field
getDeclaredField(String name) Returns a Field[]
getDeclaredFields() Returns an array of Method
getDeclaredMethod(String name,
Class<?>... parameterTypes) Returns a Method[]
getDeclaredMethods() Returns an array containing Class<?>
getDeclaringClass() If the class or interface represented by this Class<?>
getEnclosingClass() Returns the immediately enclosing class of the underlying class. Constructor<?>
getEnclosingConstructor() If this Method
getEnclosingMethod() If this T[]
getEnumConstants() Returns the elements of this enum class or null if this Class object does not represent an enum type. Field
getField(String name) Returns a Field[]
getFields() Returns an array containing Type[]
getGenericInterfaces() Returns the Type
getGenericSuperclass() Returns the Class<?>[]
getInterfaces() Determines the interfaces implemented by the class or interface represented by this object. Method
getMethod(String name,
Class<?>... parameterTypes) Returns a Method[]
getMethods() Returns an array containing int
getModifiers() Returns the Java language modifiers for this class or interface, encoded in an integer. String
getName() Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this Package
getPackage() Gets the package for this class. ProtectionDomain
getProtectionDomain() Returns the URL
getResource(String name) Finds a resource with a given name. InputStream
getResourceAsStream(String name) Finds a resource with a given name. Object[]
getSigners() Gets the signers of this class. String
getSimpleName() Returns the simple name of the underlying class as given in the source code. Class<? super T>
getSuperclass() Returns the String
getTypeName() Return an informative string for the name of this type. TypeVariable<Class<T>>[]
getTypeParameters() Returns an array of boolean
isAnnotation() Returns true if this boolean
isAnnotationPresent(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false. boolean
isAnonymousClass() Returns boolean
isArray() Determines if this boolean
isAssignableFrom(Class<?> cls) Determines if the class or interface represented by this boolean
isEnum() Returns true if and only if this class was declared as an enum in the source code. boolean
isInstance(Object obj) Determines if the specified boolean
isInterface() Determines if the specified boolean
isLocalClass() Returns boolean
isMemberClass() Returns boolean
isPrimitive() Determines if the specified boolean
isSynthetic() Returns T
newInstance() Creates a new instance of the class represented by this String
toGenericString() Returns a string describing this String
toString() Converts the object to a string. Which of the following is used to access a member of class before creation of object?If no access specifier is used then by default member is public within its own package & cannot be accessed by Java run time system. 2. Which of these is used to access a member of class before object of that class is created? Explanation: None.
Which of these is used to access members of class before the object of that class is created Mcq?Explanation: By definition if a class has no access specifiers, it defaults to private accessibility. 2. Which of these is used to access members of class before the object of that class is created? Explanation: None.
Which of these is used to access a member of class without creating object?Non-static methods can access any static method and static variable, without creating an instance of the object.
Which is used to access the member of a class?Dot (.) operator is known as "Class Member Access Operator" in C++ programming language, it is used to access public members of a class.
|