Class<String> c = String.class;
Check out the Javadoc for java.lang.Class
to see what you can do with one of these little guys – mostly related to reflection
More Related Contents:
- Java: how do I get a class literal from a generic type?
- How do you specify a byte literal in Java?
- Setting Short Value Java
- Why int j = 012 giving output 10?
- Are there binary literals in Java?
- What’s the best way to get a Class object for an array type?
- Java string intern and literal
- What would be the value of variable after executing the following statement
- InvalidKeyException Illegal key size
- How to write a UTF-8 file with Java?
- Java Compare Two Lists
- Content is not allowed in Prolog SAXParserException
- pdfbox 2.0.2 > Calling of PageDrawer.processPage method caught exceptions
- Spring Boot configure and use two data sources
- What is the replacement for javax.activation package in java 9?
- What does this thread join code mean?
- Is there a method that calculates a factorial in Java? [closed]
- Finding SSID of a wireless network with Java
- How to call Oracle Function or Procedure using Hibernate (EntityManager) or JPA
- Super class method and Interface default method conflict resolution
- Java – shutting down on Out of Memory Error
- JUnit 4: Set up things in a test suite before tests are run (like a test’s @BeforeClass method, just for a test suite)
- Java HashMap – deep copy
- JOptionPane Passing Custom Buttons
- Android Studio Convert ISO string to “America/New_York” when adding to event to calendar
- Set minimum and maximum characters in a regular expression
- How to set session timeout dynamically in Java web applications?
- Error: Could not find com.google.gms:google-services:1.0. when adding google service plugin in build.gradle in android studio
- Firebase Authentication FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred
- Where do resource files go in a Gradle project that builds a Java 9 module?