exception tag

51 questions


1 answers
80 views
0
NullPointerException when accessing view from onCreate()

This is one of the typical questions that is frequently asked in hashcodeYou have created a new activity using the wizard according to the tutorial. NullPointerException occurred when a method call wa...


2 answers
75 views
0
I have a question about JAVA EXCEPTION!

Hello, everyone I'm a beginner developer.I'm asking you this question because there's no way to find it during the development of the program.Java development is currently springing.When the controlle...

2 years ago

1 answers
83 views
0
What is NullPointerException and how do I fix it?

What is NullPointerException (java.lang.NullPointerException) and why does it occur?Is there any method that can be used to prevent a program from terminating abnormally due to NullPointerException?


1 answers
132 views
0
How to add permission to manifest file in Android application

I use HttpURLConnection to access http link to download files from Android. Logcat displays this error WARN/System.err(223): java.net.SocketException: Permission denied (maybe missing INTERNET permiss...


1 answers
113 views
0
How do I deliberately make a specific exception in a unit test?

We need to do a unit test for the exceptionIs there a way to deliberately cause specific exceptions such as EOFError and ZeroDivisionError?


1 answers
80 views
0
android.os.NetworkOnMainThreadException

URL url = new URL(urlToRssFeed);SAXParserFactory factory = SAXParserFactory.newInstance();SAXParser parser = factory.newSAXParser();XMLReader xmlreader = parser.getXMLReader();RssHandler theRSSHandler...


1 answers
112 views
0
What is an easy way to create an exception handling class in Java?

You are about to create an exception handling class. public class MyException extends Exception {}public class Foo { public bar() throws MyException { throw new MyException(try again please); }}I trie...

2 years ago

2 answers
104 views
0
Run Error (500 ClassNotFoundException) question in JSTL Intelligence J-IDEA (2016.2.5).(It works well in Eclipse ㅜ))

Hello, I am a student studying web programming.These days, I am studying jstl and el in JSP.I am using IntelliJ IDEA as IDE.When I first created the web application project, I just copied ojdbc14.jar ...


1 answers
102 views
0
Can I catch multiple exceptions per line?

I want to do the same thing for err1 and err2Do I have to write it separately like that?try: # Error Codeexcept err1 : passexcept err2 : pass


1 answers
71 views
0
I'd like to ask you a question about the code for creating a java lottery number

import java.util.*;//lotto numberpublic class Pre4 {public static void main(String[] args){ Random rann = new Random(); int[] a = new int[45]; int[] b = new int[7]; for(int q=0;q<a.length;q++){ a[...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.