
Software Programming : Java Programming QUESTIONS AND ANSWERS :: part17 : 1 to 5
Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :
1.Which of the following is valid to open a database connection? |
| Connection con = DriverManager.getConnection(url, userid, password); |
| Connection con = DriverManager.getConnection(); |
| Connection con = new DriverManager.getConnection(); |
| Connection con = DriverManager.openConnection(url); |
| Connection con = new DriverManager.openConnection();. |
2.Which of the following is the default Layout Manager for an Applet? |
| FlowLayout |
| BorderLayout |
| GridLayout |
| CardLayout |
| MarginLayout. |
3.Select from among the following what Java can do? |
| Object oriented applications can be developed |
| Networking applications can be developed |
| Database applications can be developed |
| Either (opt1) or (opt2) above |
| Either (opt1) or (opt2) or (opt3) above. |
4.Which exception is thrown by the getConnection() method of the DriverManager class? |
| ConnectionNotFoundException |
| IOException |
| SQLException |
| ReadException |
| DataExecption. |
5.Single-line comments that should be ignored by the compiler are denoted using |
| Two forward slashes ( // ) |
| A slash and a star ( /* ) |
| System.out.println |
| System.out.print |
| One forward slash. |
More Java Programming QUESTIONS AND ANSWERS available in next pages
-
Health is the greatest gift, contentment is the greatest wealth -Buddha
- TNTET 2021 - Practice
- SSC CGL 2021 - Practice
- TNPSC Group 2A 2021 - Practice
- IIT JEE
- IIT JEE Q&A
- TNPSC Answer Keys
- TNPSC Group 2 Syllabus
-
TNPSC Q&A

- Online Tests - TNPSC
- Online Tests - GK
- IBPS 2020-2021
- Online Tests - Bank
- Online Tests - RRB NTPC
- Online Tests - UGC NET
- Online Tests - TANCET
- Online Aptitude Test
-
Engineering

-
Programming

-
Basic Science

-
Quiz

- Plus Two Question Papers
- SSLC Question Bank
-
Aptitude Tests

-
Logical Reasoning

-
General Knowledge-Hindi

-
Indian History MCQ

-
Indian Geography MCQ

-
Indian Civics MCQ

-
Indian Economics MCQ

-
CTET Biology MCQ

-
CTET Chemistry MCQ

-
CTET Physics Solved MCQ

-
Arithmetic Tests

- Press Release
- FAQ
- Coaching Centres
- TNPSC Group 1 Syllabus
-
TNPSC Group IV Syllabus

- TRB 2017 in English PDF

- TRB 2017 in Tamil PDF

- TET
- TNTET
