Technology Questions

Practice Technology MCQs with answers and explanations. Page 76 of 79.

Category
Interview
Topic
Technology
Page
76 / 79
Mode
Practice

Questions

Open any question to view the answer and explanation.

In Java, can you compile a source program file that does not contain a main method, and what is the consequence?
Open
View answer
In Java, what are the key restrictions and rules that apply when overriding a method in a subclass?
Open
View answer
In Java, what is the difference between PATH and CLASSPATH environment settings and what does each one control?
Open
View answer
In Java, what is the impact of declaring a method as final in a class?
Open
View answer
In Java, what is a static initializer block and when is it executed during the life cycle of a class?
Open
View answer
In Java exception handling, how does a try statement decide which catch block will handle a thrown exception?
Open
View answer
In Java, what are the two main ways to create a new thread of execution?
Open
View answer
In Java multithreading, what is the difference between creating a thread by extending Thread and by implementing Runnable, and which is generally preferred?
Open
View answer
In Java, what is a Thread and what does it represent inside a running program?
Open
View answer
In Java, what do the access modifiers private, protected, and public mean in terms of where a member can be accessed?
Open
View answer
In Java, if a method is declared as protected, where can that method be accessed from?
Open
View answer
In Java, what is the difference between method overriding and method overloading in terms of signature, class relationship, and runtime behavior?
Open
View answer
In Java, what is a classloader and what role does it play in the Java Virtual Machine?
Open
View answer
In the following Java code, what will be printed to the console? Object s1 = new String("Hello"); Object s2 = new String("Hello"); if (s1 == s2) { System.out.println("s1 and s2 are =="); } else if (s1.equals(s2)) { System.out.println("s1 and s2 are equals()"); }
Open
View answer
In Java, what is JDBC and what problem does it solve in database programming?
Open
View answer
In Java JDBC, what is DriverManager and what responsibility does it have in managing database connections?
Open
View answer
In JDBC, what is a ResultSet and how is it used to access the rows returned by a SQL query?
Open
View answer
In JDBC, which set of driver types correctly lists the four standard categories of JDBC drivers?
Open
View answer
In classic JDBC, what is true about the thread safety and multithreading support of the JDBC ODBC bridge driver?
Open
View answer
In Java object oriented design, what is the difference between an interface and an abstract class, and when would you use each?
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.