1 |
A single try block and multiple catch blocks can co-exist in a Java Program. Explain?
|
VAMSI |
Jan 17, 2022 23:20 |
0 |
219 |
2 |
Briefly explain the concept of constructor overloading?
|
SANJAY |
Jan 10, 2022 23:31 |
0 |
217 |
3 |
Can a class have an interface?
|
SANJAY |
Jul 22, 2021 09:03 |
1 |
341 |
4 |
Can an exception be rethrown?
|
ROHAN |
Aug 07, 2021 11:29 |
1 |
292 |
5 |
Can finally block be used without a catch?
|
ROHAN |
Jul 05, 2021 14:12 |
1 |
329 |
6 |
Can I import same package or class twice? Will the JVM load the package twice at runtime?
|
RANJIT |
Jul 02, 2021 13:34 |
1 |
329 |
7 |
Can I import same package/class twice? Will the JVM load the package twice at runtime?
|
RANJIT |
Sep 07, 2021 00:56 |
0 |
219 |
8 |
Can the Interface be final?
|
ROHAN |
Apr 30, 2021 10:20 |
1 |
370 |
9 |
Can there be an abstract method without an abstract class?
|
ROHAN |
Apr 27, 2021 10:46 |
1 |
352 |
10 |
Can we change the scope of the overridden method in the subclass?
|
RANJIT |
Mar 11, 2021 11:44 |
1 |
637 |
11 |
Can we declare a constructor as final?
|
RANJIT |
Apr 08, 2021 12:56 |
2 |
372 |
12 |
Can we declare an interface as final?
|
JOSHUA |
Apr 08, 2021 12:57 |
0 |
398 |
13 |
Can we declare the static variables and methods in an abstract class?
|
SANJAY |
Feb 20, 2021 10:05 |
1 |
387 |
14 |
Can we define private and protected modifiers for the members in interfaces?
|
SANJAY |
Aug 17, 2021 04:20 |
1 |
305 |
15 |
Can we execute a program without main() method?
|
RANJIT |
Mar 08, 2021 12:39 |
1 |
370 |
16 |
Can we make constructors static?
|
JOSHUA |
Feb 20, 2021 09:56 |
1 |
395 |
17 |
Can we make the abstract methods static in Java?
|
VAMSI |
Feb 20, 2021 10:02 |
1 |
389 |
18 |
Can we modify the throws clause of the superclass method while overriding it in the subclass?
|
VAMSI |
Mar 12, 2021 11:15 |
1 |
469 |
19 |
Can we overload the constructors?
|
SANJAY |
Feb 15, 2021 10:59 |
1 |
382 |
20 |
Can we overload the main() method?
|
ROHAN |
Mar 03, 2021 10:58 |
1 |
363 |
21 |
Can we override the overloaded method?
|
ROHAN |
Mar 11, 2021 11:41 |
1 |
369 |
22 |
Can we override the private methods?
|
VAMSI |
Mar 11, 2021 11:43 |
1 |
361 |
23 |
Can we override the static method?
|
RANJIT |
Mar 06, 2021 10:16 |
1 |
357 |
24 |
Can we override the static methods?
|
RANJIT |
Feb 19, 2021 11:05 |
1 |
370 |
25 |
Can you achieve Runtime Polymorphism by data members?
|
RANJIT |
Apr 20, 2021 12:53 |
1 |
361 |
26 |
Can you declare an interface method static?
|
VAMSI |
Apr 28, 2021 10:14 |
1 |
337 |
27 |
Can you declare the main method as final?
|
JOSHUA |
Apr 06, 2021 12:49 |
1 |
381 |
28 |
Can you have virtual functions in Java?
|
VAMSI |
Mar 30, 2021 12:14 |
1 |
373 |
29 |
Can you make a constructor final?
|
VAMSI |
Feb 15, 2021 10:54 |
1 |
377 |
30 |
Can you override a private method in Java?
|
ROHAN |
Jan 18, 2022 23:38 |
0 |
216 |
31 |
Can you use abstract and final both with a method?
|
SANJAY |
Apr 27, 2021 10:47 |
1 |
340 |
32 |
Describe and compare fail-fast and fail-safe iterators?
|
RANJIT |
Jan 24, 2022 00:05 |
0 |
329 |
33 |
Difference between Default and Protected access specifiers?
|
SANJAY |
Jan 28, 2022 03:15 |
0 |
320 |
34 |
Do I need to import java.lang package any time? Why?
|
RANJIT |
Jun 05, 2021 13:52 |
1 |
297 |
35 |
do we have DESTRUCTORS in Java? have never seen an example of a destructor program, only constructor?
|
RANJIT |
Mar 29, 2021 12:22 |
1 |
372 |
36 |
Does constructor return any value?
|
JOSHUA |
Feb 13, 2021 10:40 |
1 |
375 |
37 |
Does overriding the hashCode() method have any performance implication?
|
VAMSI |
Jan 22, 2022 00:21 |
0 |
579 |
38 |
Explain the hierarchy of Java Exception classes?
|
JOSHUA |
Sep 20, 2021 01:44 |
1 |
338 |
39 |
For Instance, a Hotel management system can be termed as a software, an app, and also an Information system. Why so many names for just one thing? The concept of a software, and an Information system, there's no difference here, just the names?
|
JOSHUA |
Apr 20, 2021 12:55 |
1 |
264 |
40 |
How can constructor chaining be done by using the super keyword?
|
JOSHUA |
Aug 05, 2021 04:13 |
0 |
289 |
41 |
How can we access some class in another class in Java?
|
VAMSI |
May 29, 2021 09:32 |
1 |
343 |
42 |
How do you ensure that N thread can access N resources without deadlock?
|
SANJAY |
Jan 21, 2022 01:38 |
0 |
372 |
43 |
How HashMap works in Java?
|
JOSHUA |
Dec 23, 2021 02:44 |
0 |
237 |
44 |
How many types of constructors are used in Java?
|
SANJAY |
Feb 13, 2021 10:35 |
1 |
367 |
45 |
How many types of exception can occur in a Java program?
|
SANJAY |
Sep 17, 2021 02:22 |
1 |
329 |
46 |
How many types of memory areas are allocated by JVM?
|
SANJAY |
Feb 03, 2021 09:40 |
1 |
364 |
47 |
How to add Bootstrap to Angular 10?
|
RANJIT |
Mar 09, 2021 11:15 |
1 |
368 |
48 |
How to make a read-only class in Java?
|
KRISHNA SWAROOP |
May 03, 2021 09:58 |
1 |
356 |
49 |
How to make a write-only class in Java?
|
PADMAKEECHU |
May 04, 2021 13:11 |
1 |
353 |
50 |
how we can take list from user?
|
RANJIT |
Apr 23, 2021 11:16 |
1 |
338 |
51 |
I want to upload a large file for my application. but I'm getting a java heap space error. I use optional when getting the file in my application code. How can I add this file by dividing or shredding it?
|
RANJIT |
Apr 07, 2021 11:50 |
1 |
286 |
52 |
If I don't provide any arguments on the command line, then what will the value stored in the String array passed into the main() method, empty or NULL?
|
JOSHUA |
Feb 08, 2021 08:50 |
1 |
371 |
53 |
Is constructor inherited?
|
RANJIT |
Feb 15, 2021 10:50 |
1 |
378 |
54 |
Is delete, next, main, exit or null keyword in java?
|
SANJAY |
Feb 06, 2021 08:38 |
1 |
1232 |
55 |
Is Empty .java file name a valid source file name?
|
VAMSI |
Feb 06, 2021 08:31 |
1 |
323 |
56 |
Is it possible to instantiate the abstract class?
|
RANJIT |
Apr 28, 2021 10:11 |
1 |
320 |
57 |
Is Java “pass-by-reference” or “pass-by-value”?
|
VAMSI |
Dec 27, 2021 03:33 |
1 |
458 |
58 |
Is there any difference between nested classes and inner classes?
|
VAMSI |
Jul 17, 2021 13:20 |
1 |
304 |
59 |
List the features of Java Programming language.
|
RANJIT |
Feb 04, 2021 09:37 |
1 |
369 |
60 |
Name some classes present in java.util.regex package?
|
SANJAY |
Jul 06, 2021 15:30 |
1 |
266 |
61 |
One of my s3 is bucket is deleted but i need to restore is there any possible way?
|
ALLINO |
Mar 06, 2021 12:02 |
0 |
373 |
62 |
RanjitWhat is the output of the following Java program? 1. class Test 2. { 3. int i; 4. } 5. public class Main 6. { 7. public static void main (String args[]) 8. { 9. Test test = new Test(); 10. System.ou
|
RANJIT |
Feb 17, 2021 12:34 |
1 |
326 |
63 |
What are anonymous inner classes?
|
ROHAN |
Jul 26, 2021 11:43 |
1 |
301 |
64 |
What are directives?
|
SANJAY |
Jan 25, 2022 06:26 |
0 |
301 |
65 |
What are the advantages of defining packages in Java?
|
JOSHUA |
Aug 28, 2021 02:48 |
1 |
285 |
66 |
What are the advantages of Encapsulation in Java?
|
FRAUSKY |
May 04, 2021 13:15 |
1 |
336 |
67 |
What are the advantages of Java inner classes?
|
ROHAN |
Jul 07, 2021 15:06 |
1 |
287 |
68 |
What are the advantages of Packages in Java?
|
RANJIT |
Feb 10, 2021 08:27 |
1 |
356 |
69 |
What are the advantages of passing this into a method instead of the current class object itself?
|
RANJIT |
Feb 24, 2021 11:36 |
1 |
346 |
70 |
What are the differences between this and super keyword?
|
SANJAY |
Mar 02, 2021 10:40 |
1 |
374 |
71 |
What are the main differences between the Java platform and other platforms?
|
SANJAY |
Feb 04, 2021 10:00 |
1 |
364 |
72 |
What are the main uses of the super keyword?
|
VAMSI |
Mar 02, 2021 10:38 |
1 |
351 |
73 |
What are the main uses of this keyword?
|
JOSHUA |
Feb 24, 2021 11:35 |
1 |
349 |
74 |
What are the most important features of Java?
|
GANESH MALLA |
Jan 23, 2021 09:46 |
1 |
380 |
75 |
What are the restrictions that are applied to the Java static methods?
|
JOSHUA |
Feb 18, 2021 12:06 |
1 |
356 |
76 |
What are the states in the lifecycle of a Thread?
|
VAMSI |
Jan 13, 2022 04:40 |
0 |
209 |
77 |
What are the various access specifiers in Java?
|
VAMSI |
Feb 09, 2021 11:12 |
1 |
363 |
78 |
What do you mean by aggregation?
|
ROHAN |
Dec 27, 2021 00:46 |
1 |
285 |
79 |
What do you understand by BlockingQueue?
|
JOSHUA |
Nov 27, 2021 05:33 |
0 |
273 |
80 |
What do you understand by copy constructor in Java?
|
RANJIT |
Feb 16, 2021 11:23 |
1 |
358 |
81 |
What do you understand by inter-thread communication?
|
SANJAY |
Jul 26, 2021 14:34 |
1 |
320 |
82 |
What do you understand by Java virtual machine?
|
JOSHUA |
Feb 03, 2021 09:22 |
2 |
377 |
83 |
What gives Java its 'write once and run anywhere' nature?
|
RANJIT |
Feb 06, 2021 08:22 |
1 |
347 |
84 |
What if I write static public void instead of public static void?
|
RANJIT |
Feb 08, 2021 08:52 |
1 |
358 |
85 |
What if the static modifier is removed from the signature of the main method?
|
ROHAN |
Feb 20, 2021 09:55 |
1 |
366 |
86 |
What if the static modifier is removed from the signature of the main method?
|
VAMSI |
Mar 08, 2021 12:41 |
1 |
355 |
87 |
what is a 'translation look-aside buffer'?
|
JOSHUA |
Apr 23, 2021 11:13 |
1 |
407 |
88 |
What is a marker interface?
|
SANJAY |
Apr 30, 2021 10:21 |
1 |
350 |
89 |
What is a virtual file system? Give an example.
|
SANJAY |
Apr 19, 2021 12:18 |
1 |
330 |
90 |
What is aggregation?
|
RANJIT |
Feb 26, 2021 10:21 |
1 |
366 |
91 |
What is an object?
|
VAMSI |
Feb 11, 2021 11:44 |
1 |
353 |
92 |
What is classloader?
|
JOSHUA |
Feb 06, 2021 08:26 |
1 |
374 |
93 |
What is composition?
|
SANJAY |
Feb 27, 2021 10:19 |
1 |
363 |
94 |
What is context switching?
|
JOSHUA |
Jul 27, 2021 14:55 |
1 |
295 |
95 |
What is covariant return type?
|
ROHAN |
Aug 13, 2021 07:28 |
1 |
303 |
96 |
What is Exception Handling?
|
JOSHUA |
Jun 01, 2021 08:24 |
1 |
325 |
97 |
What is exception propagation?
|
VAMSI |
Sep 27, 2021 05:41 |
1 |
315 |
98 |
What is finally block?
|
ROHAN |
Sep 23, 2021 04:49 |
1 |
317 |
99 |
What is Hibernate Framework?
|
RANJIT |
Sep 06, 2021 08:49 |
1 |
259 |
100 |
What is Java instance Of operator?
|
ROHAN |
Apr 22, 2021 12:42 |
1 |
352 |
101 |
What is Java instanceOf operator?
|
ROHAN |
May 29, 2021 09:17 |
1 |
335 |
102 |
What is JIT compiler?
|
JOSHUA |
Feb 04, 2021 09:43 |
1 |
355 |
103 |
What is method overloading?
|
SANJAY |
Mar 03, 2021 10:57 |
1 |
352 |
104 |
What is method overriding?
|
SANJAY |
Mar 06, 2021 10:15 |
1 |
342 |
105 |
What is object cloning?
|
RANJIT |
Mar 02, 2021 10:43 |
1 |
359 |
106 |
What is object pooling?
|
ROHAN |
Dec 21, 2021 01:11 |
1 |
261 |
107 |
What is object-oriented paradigm?
|
RANJIT |
Feb 11, 2021 11:46 |
1 |
370 |
108 |
What is Runtime Polymorphism?
|
RANJIT |
May 27, 2021 09:23 |
1 |
344 |
109 |
What is singleton class? where is it used?
|
VAMSI |
Aug 14, 2021 13:05 |
1 |
294 |
110 |
What is Stack Overflow Java?
|
JOSHUA |
Jan 13, 2022 00:57 |
0 |
221 |
111 |
What is String Pool?
|
ROHAN |
Oct 08, 2021 05:11 |
1 |
318 |
112 |
What is super in java?
|
RANJIT |
Aug 03, 2021 04:43 |
1 |
300 |
113 |
What is the abstract class?
|
RANJIT |
Aug 14, 2021 00:48 |
1 |
283 |
114 |
What is the abstraction?
|
VAMSI |
Apr 15, 2021 13:06 |
0 |
337 |
115 |
What is the abstraction?
|
SANJAY |
Apr 22, 2021 12:43 |
1 |
338 |
116 |
What is the base class for Error and Exception?
|
ROHAN |
Jun 05, 2021 13:56 |
1 |
319 |
117 |
What is the constructor?
|
VAMSI |
Feb 12, 2021 11:07 |
1 |
355 |
118 |
What is the default value of the local variables?
|
SANJAY |
Feb 08, 2021 08:56 |
1 |
353 |
119 |
What is the difference between a synchronized method and a synchronized block?
|
ROHAN |
Dec 21, 2021 01:03 |
0 |
243 |
120 |
What is the difference between abstraction and encapsulation?
|
JOSHUA |
Apr 15, 2021 13:04 |
1 |
330 |
121 |
What is the difference between abstraction and encapsulation?
|
ROHAN |
Apr 26, 2021 09:52 |
1 |
322 |
122 |
What is the difference between aggregation and composition?
|
RANJIT |
Mar 01, 2021 10:55 |
1 |
351 |
123 |
What is the difference between an object-oriented programming language and object-based programming language?
|
RANJIT |
Feb 12, 2021 11:04 |
1 |
345 |
124 |
What is the difference between JDK, JRE, and JVM?
|
VAMSI |
Feb 03, 2021 09:37 |
1 |
351 |
125 |
What is the difference between static binding and dynamic binding?
|
SANJAY |
Apr 21, 2021 12:30 |
0 |
372 |
126 |
What is the difference between the final method and abstract method?
|
SANJAY |
Apr 10, 2021 12:46 |
1 |
380 |
127 |
What is the final blank variable?
|
VAMSI |
Apr 02, 2021 13:05 |
1 |
376 |
128 |
What is the final class?
|
ROHAN |
Apr 01, 2021 13:03 |
1 |
372 |
129 |
What is the final variable?
|
SANJAY |
Apr 01, 2021 13:04 |
1 |
367 |
130 |
What is the Inheritance?
|
RANJIT |
Feb 25, 2021 10:01 |
1 |
349 |
131 |
What is the interface?
|
JOSHUA |
Apr 28, 2021 10:13 |
1 |
327 |
132 |
What is the meaning of immutable regarding String?
|
JOSHUA |
Oct 18, 2021 01:55 |
1 |
310 |
133 |
What is the output of the following Java program?
|
SANJAY |
Feb 11, 2021 11:48 |
1 |
365 |
134 |
What is the output of the following Java program? 1. class Test 2. { 3. public static void main (String args[]) 4. { 5. System.out.println(10 * 20 +
|
SANJAY |
Feb 10, 2021 08:40 |
1 |
328 |
135 |
What is the output of the following Java program? 1. class Test 2. { 3. public static void main (String args[]) 4. { 5. System.out.println(10 + 20 +
|
JOSHUA |
Feb 10, 2021 08:25 |
1 |
359 |
136 |
What is the output of the following Java program? 1. class Main { 2. public static void main(String args[]){ 3. final int i; 4. i = 20; 5. System.out.println(i); 6. } 7. }
|
SANJAY |
Apr 08, 2021 12:50 |
1 |
372 |
137 |
What is the output of the following Java program? 1. public class Test 2. { 3. Test(int a, int b) 4. { 5. System.out.println("a = "+a+" b = "+b); 6. } 7. Test(int a, float b) 8. { 9. System.out.println(
|
VAMSI |
Feb 16, 2021 11:25 |
1 |
321 |
138 |
What is the package?
|
VAMSI |
Aug 25, 2021 05:38 |
1 |
292 |
139 |
What is the platform?
|
VAMSI |
Feb 04, 2021 09:53 |
1 |
351 |
140 |
What is the purpose of a default constructor?
|
VAMSI |
Feb 13, 2021 10:37 |
1 |
361 |
141 |
What is the purpose of static methods and variables?
|
JOSHUA |
Feb 09, 2021 11:17 |
1 |
357 |
142 |
What is the purpose of toString() method in Java?
|
RANJIT |
Nov 05, 2021 01:23 |
0 |
282 |
143 |
What is the purpose of using Buffered Input Stream and Buffered Output Stream classes?
|
RANJIT |
Jul 19, 2021 13:53 |
1 |
329 |
144 |
What is the purpose of wait() method in Java?
|
RITA |
Nov 23, 2021 06:03 |
1 |
266 |
145 |
What is the static block?
|
SANJAY |
Feb 19, 2021 11:07 |
1 |
371 |
146 |
What is the static import?
|
ROHAN |
Sep 13, 2021 00:15 |
1 |
343 |
147 |
What is the static method?
|
VAMSI |
Feb 18, 2021 12:09 |
1 |
362 |
148 |
What is the static variable?
|
VAMSI |
Feb 17, 2021 12:36 |
1 |
354 |
149 |
What is this keyword in java?
|
RANJIT |
Feb 23, 2021 10:58 |
1 |
361 |
150 |
what programming language is this? r = s * t x = r + 2 m = w + q
|
JOSHUA |
Mar 30, 2021 11:47 |
1 |
358 |
151 |
What will be the initial value of an object reference which is defined as an instance variable?
|
JOSHUA |
Feb 12, 2021 11:05 |
1 |
361 |
152 |
What will happen if we put a key object in a HashMap which is already there?
|
SANJAY |
Dec 24, 2021 05:29 |
1 |
290 |
153 |
What’s wrong with using HashMap in the multi-threaded environment? When get() method go to the infinite loop?
|
ROHAN |
Jan 07, 2022 00:28 |
0 |
585 |
154 |
When can an object reference be cast to an interface reference?
|
VAMSI |
May 01, 2021 07:46 |
1 |
364 |
155 |
When do you override hashcode and equals() ?
|
ROHAN |
Dec 25, 2021 04:28 |
1 |
386 |
156 |
When to use ArrayList and LinkedList?
|
RANJIT |
Nov 25, 2021 04:55 |
0 |
224 |
157 |
Which class is the superclass for all the classes?
|
SANJAY |
Feb 25, 2021 10:07 |
1 |
342 |
158 |
Which is more important - learning to program or learning to debug?
|
VAMSI |
Apr 20, 2021 12:54 |
1 |
333 |
159 |
while I use to attend web development class, the only JavaScript code our teacher used in the project was the login validation.What other things does JavaScript developers do?
|
VAMSI |
Apr 07, 2021 11:53 |
1 |
276 |
160 |
Why are the objects immutable in java?
|
VAMSI |
Oct 23, 2021 03:59 |
1 |
274 |
161 |
Why can we not override static method?
|
VAMSI |
Mar 09, 2021 11:15 |
1 |
373 |
162 |
Why CharArray() is preferred over String to store the password?
|
JOSHUA |
Jul 06, 2021 09:20 |
1 |
301 |
163 |
Why Collection doesn’t extend the Cloneable and Serializable interfaces?
|
SANJAY |
Dec 30, 2021 02:07 |
1 |
469 |
164 |
Why do we have generic programming?
|
ROHAN |
Apr 19, 2021 11:59 |
1 |
340 |
165 |
Why does Java not support pointers?
|
ROHAN |
Mar 01, 2021 10:57 |
1 |
412 |
166 |
Why is BST not implemented in Java? Or any Tree based data structure.
|
VAMSI |
Apr 12, 2021 12:27 |
1 |
331 |
167 |
Why is Inheritance used in Java?
|
JOSHUA |
Feb 25, 2021 10:04 |
1 |
352 |
168 |
Why is multiple inheritance not supported in java?
|
ROHAN |
Feb 26, 2021 10:16 |
1 |
342 |
169 |
Why is the main method static?
|
ROHAN |
Feb 18, 2021 12:11 |
1 |
356 |
170 |
Why Java is not 100% Object-oriented?
|
JOSHUA |
Jan 17, 2022 00:57 |
0 |
187 |
171 |
Why Java is platform independent?
|
RANJIT |
Jan 20, 2022 05:49 |
0 |
270 |