<< Prev Showing: 226-230 of 348 Next >>
· 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 ·Catching Exception Using Class Exception - Java
Write a program that demonstrates how various exceptions are caught with catch (Exception exception) This time, define classes ExceptionA (which inherits from class Exception) and ExceptionB (which inherits from class ExceptionA). In your program, create try blocks that throw exceptions of types ExceptionA, ExceptionB, NullPointerException and IOException. All exceptions should be caught with catch blocks specifying type Exception.
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
126946
OTA ID:
101298
Java question - abstract classes and interfaces
Compare and contrast abstract classes and interfaces. Why would you use an abstract class? Why would you use an interface?
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
126947
OTA ID:
101298
1. Describe the relationship between a GUI component and events? What is the programmer’s responsibility when developing a GUI, event-driven program? 2. List two advantages and two disadvantages of using UML as a modeling standard for Object-Oriented programs.
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
127364
OTA ID:
105277
Find the error(s) in the following recursive method
Find the error(s) in the following recursive method, and explain how to correct it (them). This method should find the sum of the values from 0 to n. public int sum( int n ) { if ( n == 0 ) return 0; else return n + sum( n ); } // end method sum
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
127368
OTA ID:
105303
Write a recursive method power( base, exponent ) that, when called, returns exponent base For example, power( 3,4 ) = 3*3*3*3. Assume that exponent is an integer greater than or equal to 1. [Hint: The recursion step should use the relationship exponent exponent-1 base = base*base and the terminating condition occurs when exponent is equal to 1, because 1 base = base Incorporate this method into a program that enables the user to enter the base and exponent.]
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
127370
OTA ID:
101298
<< Prev Showing: 226-230 of 348 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-348 ·Page generated in 0.0965 seconds