JAVA

What is the default value of a boolean variable in Java?
False
True
Null
Undefined
Which annotation is used to define the primary key in Hibernate?
RimaryKey
Primary
_Key
What is the purpose of Spring Boot?
Which interface is used to establish a connection to a database in JDBC?
Connection
Statement
ResultSet
PreparedStatement
CallableStatement
What is the output of the following Java code?\n\npublic class Main {\n public static void main(String[] args) {\n int x = 5;\n System.out.println(x++);\n System.out.println(++x);\n }\n}
5\n7
6\n7
6\n6
5\n6
Which of the following is NOT a feature of Spring Framework?
Dependency Injection
Aspect-Oriented Programming
Object-Relational Mapping
Transaction Management
MVC Web Framework
What is the purpose of the 'throws' keyword in Java?
To declare that a method may throw an exception
To catch and handle exceptions
To define a custom exception class
To specify the type of an exception
Which of the following is NOT a valid data type in Java?
String
Boolean
Float
Character
Number
Integer
What is the purpose of the 'finally' block in Java?
To specify code that will always be executed, regardless of whether an exception is thrown or not
To catch and handle exceptions
To define a custom exception class
To specify the type of an exception
Which statement is true about JDBC?
JDBC stands for Java Database Connectivity
JDBC is a standard API for connecting Java applications to relational databases
JDBC can only be used with MySQL databases
JDBC provides a set of classes and interfaces for executing SQL statements and managing database connections
{"name":"JAVA", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"What is the default value of a boolean variable in Java?, Which annotation is used to define the primary key in Hibernate?, What is the purpose of Spring Boot?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker