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
32 questions
Ch. 1 + 2 Driver's Manual Study Guide

Quiz
•
10th Grade
33 questions
FrontEnd Raibagh

Quiz
•
Professional Development
35 questions
Quiz 1: Loop and Array

Quiz
•
Professional Development
33 questions
Backend Gokak

Quiz
•
Professional Development
33 questions
Pre Assessment backend

Quiz
•
Professional Development
42 questions
Mobile Application Development QUIZ

Quiz
•
KG - University
33 questions
FrontEnd Bailhongal

Quiz
•
Professional Development
35 questions
Chapters 1 & 3 Test Review

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for others
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade