Programming in Java questions and answers


Share Via:
        



Total of 56 Questions.

  Programming in Java Topics:


1.   Write ONE application program (ONE MAIN METHOD) by using the following requirements: File input and output (10 points) Exception handling (10 points) You can create your own exception classes or You can use existing exception classes from Java API Inheritance At least one superclass or abstract superclass: this class needs to have data members, accessor, mutator, and toString methods (10 points) (Answered)
Write ONE application program (ONE MAIN METHOD) by using the following requirements: File input and output (10 points) Exception handling (10 points) You can create your own exception classes or You can use existing exception classes from Java API Inheritance At least one superclass or abstract superclass: this class needs to have data members, accessor, mutator, and toString methods (10 points) .
Posted On:Fri 8, October 2021 15:52:58 pm
2.   What is the difference between java and c++?(Answered)
What is the difference between java and c++?.
Posted On:Sat 20, March 2021 21:01:37 pm
3.   What is the difference between static and non-static variables?(Answered)
What is the difference between static and non-static variables?.
Posted On:Sat 20, March 2021 21:00:47 pm
4.   What is the difference between constructors and normal methods?(Answered)
What is the difference between constructors and normal methods?.
Posted On:Sat 20, March 2021 21:00:04 pm
5.   What is Locale?(Answered)
What is Locale?.
Posted On:Sat 20, March 2021 20:54:27 pm
6.   What is singleton?(Answered)
What is singleton?.
Posted On:Sat 20, March 2021 20:53:53 pm
7.   What type of parameter passing does Java support?(Answered)
What type of parameter passing does Java support?.
Posted On:Sat 20, March 2021 20:53:15 pm
8.   What if the main method is declared as private?(Answered)
What if the main method is declared as private?.
Posted On:Sat 20, March 2021 20:52:27 pm
9.   What is the difference between error and an exception?(Answered)
What is the difference between error and an exception?.
Posted On:Sat 20, March 2021 20:51:48 pm
10.   What is Byte Code?(Answered)
What is Byte Code?.
Posted On:Sat 20, March 2021 20:50:39 pm
11.   How is final different from finally and finalize()?(Answered)
How is final different from finally and finalize()?.
Posted On:Sat 20, March 2021 20:49:58 pm
12.   When is a method said to be overloaded and when is a method said to be overridden?(Answered)
When is a method said to be overloaded and when is a method said to be overridden?.
Posted On:Sat 20, March 2021 20:49:08 pm
13.   What is the difference between a break statement and a continue statement?(Answered)
What is the difference between a break statement and a continue statement?.
Posted On:Sat 20, March 2021 20:48:08 pm
14.   What is the purpose of finalization in java?(Answered)
What is the purpose of finalization in java?.
Posted On:Sat 20, March 2021 20:47:31 pm
15.   What is the difference between an abstract class and an interface?(Answered)
What is the difference between an abstract class and an interface?.
Posted On:Sat 20, March 2021 20:46:24 pm
16.   What is polymorphism?(Answered)
What is polymorphism?.
Posted On:Sat 20, March 2021 20:43:30 pm
17.   What is the difference between method overriding and overloading?(Answered)
What is the difference between method overriding and overloading?.
Posted On:Sat 20, March 2021 20:42:22 pm
18.   What modifiers are allowed for methods in an Interface?(Answered)
What modifiers are allowed for methods in an Interface?.
Posted On:Sat 20, March 2021 20:41:28 pm
19.   What is the difference between an if statement and a switch statement?(Answered)
What is the difference between an if statement and a switch statement?.
Posted On:Sat 20, March 2021 20:40:46 pm
20.   What are wrapped classes?(Answered)
What are wrapped classes?.
Posted On:Sat 20, March 2021 20:39:30 pm
21.   What is an Applet?(Answered)
What is an Applet?.
Posted On:Sat 20, March 2021 20:38:40 pm
22.   Describe life cycle of thread?(Answered)
Describe life cycle of thread?.
Posted On:Sat 20, March 2021 20:37:49 pm
23.   What is the difference between a while statement and a do while statement?(Answered)
What is the difference between a while statement and a do while statement?.
Posted On:Sat 20, March 2021 20:36:42 pm
24.   What is the importance of static variable?(Answered)
What is the importance of static variable?.
Posted On:Sat 20, March 2021 20:35:38 pm
25.   What is the base class of all classes?(Answered)
What is the base class of all classes?.
Posted On:Sat 20, March 2021 20:34:58 pm
26.   What is a Vector class?(Answered)
What is a Vector class?.
Posted On:Sat 20, March 2021 20:34:22 pm
27.   What is the List interface?(Answered)
What is the List interface?.
Posted On:Sat 20, March 2021 20:33:41 pm
28.   Why do threads block on I/O?(Answered)
Why do threads block on I/O?.
Posted On:Sat 20, March 2021 20:32:16 pm
29.   what is a package?(Answered)
what is a package?.
Posted On:Sat 20, March 2021 20:31:20 pm
30.   What is the difference between an interface and an abstract class?(Answered)
What is the difference between an interface and an abstract class?.
Posted On:Sat 20, March 2021 20:30:26 pm
31.   What are runtime exceptions?(Answered)
What are runtime exceptions?.
Posted On:Sat 20, March 2021 20:28:47 pm
32.   What is an instanceof operator?(Answered)
What is an instanceof operator?.
Posted On:Sat 20, March 2021 20:27:54 pm
33.   What is a user defined exception?(Answered)
What is a user defined exception?.
Posted On:Sat 20, March 2021 20:26:58 pm
34.   What is type casting?(Answered)
What is type casting?.
Posted On:Sat 20, March 2021 20:26:16 pm
35.   What is the difference between an instance variable and a static variable?(Answered)
What is the difference between an instance variable and a static variable?.
Posted On:Sat 20, March 2021 20:23:45 pm
36.   What are wrapper classes?(Answered)
What are wrapper classes?.
Posted On:Sat 20, March 2021 20:22:49 pm
37.   What is the main difference between shallow cloning and deep cloning of objects?(Answered)
What is the main difference between shallow cloning and deep cloning of objects?.
Posted On:Sat 20, March 2021 20:21:47 pm
38.   When do we use java serialization?(Answered)
When do we use java serialization?.
Posted On:Sat 20, March 2021 20:19:45 pm
39.   What is the main difference between a String and a StringBuffer class?(Answered)
What is the main difference between a String and a StringBuffer class?.
Posted On:Sat 20, March 2021 20:17:58 pm
40.   What is a list iterator?(Answered)
What is a list iterator?.
Posted On:Sat 20, March 2021 20:17:11 pm
41.   What is an array?(Answered)
What is an array?.
Posted On:Sat 20, March 2021 20:16:21 pm
42.   What is the Collections API?(Answered)
What is the Collections API?.
Posted On:Sat 20, March 2021 20:15:28 pm
43.   What must a class do to implement an interface?(Answered)
What must a class do to implement an interface?.
Posted On:Sat 20, March 2021 20:14:51 pm
44.   What is the Collection interface?(Answered)
What is the Collection interface?.
Posted On:Sat 20, March 2021 20:14:12 pm
45.   What are class variables(Answered)
What are class variables.
Posted On:Sat 20, March 2021 20:13:27 pm
46.   What is an abstract class?(Answered)
What is an abstract class?.
Posted On:Sat 20, March 2021 20:12:24 pm
47.   What are different types of access modifiers?(Answered)
What are different types of access modifiers?.
Posted On:Sat 20, March 2021 20:11:26 pm
48.   What is serialization?(Answered)
What is serialization?.
Posted On:Sat 20, March 2021 20:10:48 pm
49.   Define strings?(Answered)
Define strings?.
Posted On:Sat 20, March 2021 20:10:13 pm
50.   what is dot operator?(Answered)
what is dot operator?.
Posted On:Sat 20, March 2021 20:09:39 pm
51.   What is variables and their types?(Answered)
What is variables and their types?.
Posted On:Sat 20, March 2021 20:08:37 pm
52.   What is the Java Virtual Machine (JVM)?(Answered)
What is the Java Virtual Machine (JVM)?.
Posted On:Sat 20, March 2021 20:07:19 pm
53.   What is the Java API?(Answered)
What is the Java API?.
Posted On:Sat 20, March 2021 20:06:40 pm
54.   What are pass by reference and passby value?(Answered)
What are pass by reference and passby value?.
Posted On:Sat 20, March 2021 20:06:02 pm
55.   What are the main features of java?(Answered)
What are the main features of java?.
Posted On:Sat 20, March 2021 20:05:08 pm
56.   What is Java?(Answered)
What is Java?.
Posted On:Sat 20, March 2021 20:03:42 pm
Page 1 of 1
More Questions Categories:


About Us

Contact us

Terms of use | Privacy policy

Follow Us:               

All Rights Reserved © 2024; pscustudies.com