Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Technology Questions
In a Java interface, when must variables (fields) be initialized, considering that they are implicitly public, static, and final constants?
In a traditional Java interface (before default and private methods), which of the following method declarations is allowed inside the interface?
In Java, why are methods declared in an interface always effectively public, and what is the reason for this design?
In programming languages such as C and C plus plus, which of the following symbols is the scope resolution operator?
In Java, which kind of inheritance is not directly supported through classes and must be simulated using interfaces or other design patterns?
Consider the following Java program using threads: public class Threads2 implements Runnable { public void run() { System.out.println("run."); throw new RuntimeException("Problem"); } } public class TestThreads2 { public static void main(String[] args) { Thread t = new Thread(new Threads2()); t.start(); System.out.println("End of method."); } } Which of the following outputs best describes what happens when this program runs?
Given the abstract class public abstract class Shape { private int x; private int y; public abstract void draw(); public void setAnchor(int x, int y) { this.x = x; this.y = y; } } which of the following class declarations uses the Shape class correctly as a subclass?
Given the abstract class public abstract class Shape { private int x; private int y; public abstract void draw(); public void setAnchor(int x, int y) { this.x = x; this.y = y; } } which class declaration for Circle correctly extends Shape according to Java rules?
In Java, for a declaration like X implements Y, Z, which of the following statements about X, Y, and Z is correct?
In Java, what are class variables, member (instance) variables, and local variables, and how do they differ in scope and lifetime?
In Java Database Connectivity (JDBC), what is a JDBC driver and what role does it play in database access from Java applications?
In JDBC, what are the main steps required to execute a SQL query from a Java program, from establishing a connection to processing the results?
In Java, what is the difference between a constructor and a method in terms of purpose, name, return type, and how they are called?
In Java, what is an abstract class, and how does it differ from a regular concrete class in terms of instantiation and method definitions?
In Java, how do you define an abstract class in code, and what syntax indicates that a class is abstract?
In Java, what is the difference between an array and an ArrayList in terms of size, type storage, and available operations?
In Java object oriented programming, what is the “diamond problem” in multiple inheritance and why is it considered an ambiguity issue?
In the Java platform, which core security mechanism is used to protect users and systems from untrusted code?
In Java object oriented programming, what is encapsulation and how does it help in hiding internal data?
In object oriented Java programming, what is inheritance and how does it allow one class to reuse another class's behavior?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79