What will be the output of the below statements?
public class Test {
public static void main(String[] args)
{
String s1 = null;
System.out.println(s1); //line 2
System.out.println(s1.toString()); //line 3
}
}

Core Java and JDBC - QUIZ 1

Quiz
•
others
•
•
Medium
shilpa.hiremath shilpa.hiremath
Used 3+ times
FREE Resource
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
a) null null
b) null NullPointerException
c) NullPointerException NullPointerException
d) None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to perform DML statements in JDBC?
executeResult()
executeQuery()
executeUpdate()
execute()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which package contains the JDBC API?
java.jdbc
java.db
java.sql
java.oracle
java.mysql
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Create a free account and access millions of resources
Similar Resources on Quizizz
35 questions
Chapters 1 & 3 Test Review

Quiz
•
10th Grade
32 questions
Ch. 1 + 2 Driver's Manual Study Guide

Quiz
•
10th Grade
33 questions
ULANGAN TENGAH SEMESTER SMK PARULIAN 1 MEDAN TA. 2023 - 2024

Quiz
•
KG - University
35 questions
Finals Review Intro to Programming

Quiz
•
12th Grade
40 questions
V21. Ôn tập: Local Environment

Quiz
•
KG - University
34 questions
Checkpoint 16: China

Quiz
•
6th Grade
33 questions
FrontEnd Raibagh

Quiz
•
Professional Development
33 questions
FrontEnd Bailhongal

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for others
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade