Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
Java-Functions
4.2K+ articles
Java-lang package
417+ articles
Java.lang.Class
64 posts
Recent Articles
Popular Articles
Class getResourceAsStream() method in Java with Examples
Last Updated: 27 December 2019
The getResourceAsStream() method of java.lang.Class class is used to get the resource with the specified resource of this class. The method returns the specified resource ...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getResource() method in Java with Examples
Last Updated: 27 December 2019
The getResource() method of java.lang.Class class is used to get the resource with the specified resource of this class. The method returns the specified resource of this ...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class desiredAssertionStatus() method in Java with Examples
Last Updated: 27 December 2019
The desiredAssertionStatus() method of java.lang.Class class is used to get the Assertion Status of this class, that would get assigned to the class when this method gets ...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getEnumConstants() method in Java with Examples
Last Updated: 27 December 2019
The getEnumConstants() method of java.lang.Class class is used to get the Enum constants of this class. The method returns the Enum constants of this class in the form of ...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class cast() method in Java with Examples
Last Updated: 27 December 2019
The cast() method of java.lang.Class class is used to cast the specified object to the object of this class. The method returns the object after casting in the form of an ...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getAnnotation() method in Java with Examples
Last Updated: 27 December 2019
The getAnnotation() method of java.lang.Class class is used to get the annotation of the specified annotation type, if such an annotation is present in this class. The met...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class isAnnotationPresent() method in Java with Examples
Last Updated: 27 December 2019
The isAnnotationPresent() method of java.lang.Class class is used to check if an annotation of the specified annotation type is present in this class. The method returns a...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getAnnotationsByType() method in Java with Examples
Last Updated: 27 December 2019
The getAnnotationsByType() method of java.lang.Class class is used to get the annotations of the specified annotation type present in this class. The method returns an arr...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getAnnotations() method in Java with Examples
Last Updated: 27 December 2019
The getAnnotations() method of java.lang.Class class is used to get the annotations present in this class. The method returns an array of annotations present. Syntax:publi...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getDeclaredAnnotations() method in Java with Examples
Last Updated: 27 December 2019
The getDeclaredAnnotations() method of java.lang.Class class is used to get the declared annotations present in this class. The method returns an array of declared annotat...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getDeclaredAnnotationsByType() method in Java with Examples
Last Updated: 27 December 2019
The getDeclaredAnnotationsByType() method of java.lang.Class class is used to get the declared annotations of the specified declared annotation type present in this class....
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getDeclaredAnnotation() method in Java with Examples
Last Updated: 27 December 2019
The getDeclaredAnnotation() method of java.lang.Class class is used to get the declared annotation of the specified declared annotation type, if such an declared annotatio...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class getAnnotatedInterfaces() method in Java with Examples
Last Updated: 28 January 2022
The getAnnotatedInterfaces() method of java.lang.Class class is used to get the superinterface type annotations present in this class. The method returns an array of annot...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Class hashCode() method in Java with Examples
Last Updated: 27 December 2019
The hashCode() method of java.lang.Class class is used to get the hashCode representation of this entity. This method returns an integer value which is the hashCode.Syntax...
read more
Java
Java-lang package
Java-Functions
Java.lang.Class
Java Program to Accept a Matrix of Order M x N & Interchange the Diagonals
Last Updated: 09 August 2021
Problem Description: Write a Java program that accepts a matrix of M × N order and then interchange diagonals of the matrix.Steps: 1. We can only interchange diagonals fo...
read more
Java
Technical Scripter
Java Programs
Technical Scripter 2020
Output of Java Program
Java-Output
Java 8
Java.lang.Class
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !