Questions tagged [java.lang.class]

Java.lang.class is a runtime representation of classes and interfaces.

97 questions
-1
votes
1 answer

I am facing java.lang.OutOfMemoryError in webapplication for large data

I have more than 20 category in which each category contains more than 400+ subcategories in webapplication. When I press perticular category button it throws java.lang.OutOfMemoryError. Here is java file code. In this code, I am putting subcategory…
samkit shah
  • 657
  • 7
  • 18
-1
votes
1 answer

java.lang.NullPointerException while creating a Mp3Player

This was the code I was writing to start a Mp3Player by watching a video tutorial. I searched a lot for this issue but unable to sort out the error. After running this code , I am getting java.lang.NullPointerException error. My code looks somewhat…
Red Devil
  • 61
  • 1
  • 7
-1
votes
3 answers

returning an array but gives .class java

Hey guys i'm a newby programmer, and i'm getting a .class in return from this, but not sure what its asking. Any help would be awesome thank you! public static Letter[] addLetter(Letter[] array, Scanner kb) { Letter[] temp = new…
Bob
  • 43
  • 1
  • 1
  • 7
-2
votes
4 answers

Can we access static members and static functions of a class with the help of instance variables of that class in java?

To illustrate the contrast. Look at the following java snippet: public class Janerio { public static void main(String[] args) { new Janerio().enemy(); } public static void enemy() { System.out.println("Launch an…
Deep Roy
  • 89
  • 10
-2
votes
2 answers

Android : Fatal Exception Main toast

Hi i always have this error: Android : Fatal Exception Main!! It's my first app and so i have several problems..i can't understand how android works :( : package com.mkyong.android; import android.app.Activity; import android.os.Bundle; import…
Atlas91
  • 5,754
  • 17
  • 69
  • 141
-4
votes
2 answers

What kind of structure java/lang/String in java?

I decompiles one file, using Java Decompiler I found such line in my code, as below arg = remoteActionArgument.getDataType().getJavaDataType().getConstructor(new Class[] { java/lang/String }).newInstance(new…
Duaan
  • 609
  • 1
  • 13
  • 29
-5
votes
1 answer

.class - what is this construction and how it works?

I am beginner in programming and i just started working with greenfoot (software for creating games using Java). When i was writing code i had to use construction builded in greenfoot which was using parameter described as: java.lang.class where i…
schemaboi
  • 559
  • 5
  • 9
1 2 3 4 5 6
7