Java and C# Programming Fundamentals
Test your knowledge of Java and C# programming concepts including JDBC, I/O streams, collections, servlets, applets, and object-oriented programming principles.
Questions
Java enables the creation of cross-platform programs by compiling into an intermediate representation called Java
- Byte Code
- Firewall
- Tetra Code
- View Code
enum is a Keyword in Java, introduced from J2SE 5
- True
- False
Java support RMI. What does this RMI stands for?
- Random Memory Interface
- Remote Method Invocation
- Random Method Invocation
- Remote Memory Interface
An _________ is a special kind of Java program that is designed to be transmitted over the Internet
- Viewlet
- Servlet
- Object
- Applet
In Java, a source file is officially called a compilation unit
- True
- False
The peerless components are called
- Heavy weight components
- Medium weight components
- Light weight components
- None
The list of locations for the compiler to search in order to resolve class names at compile time is called _______
- build path
- runtime classpath
- Both (A) and (B )
- None
In order to use a servlet for handling the submission of a web form, subclass HttpServlet() and put service code in ______
- service() method
- getServletInfo() method
- doGet() or doPost() method
- None
Choose the false statement among these?
- Servlets are server side components
- Applets have GUI interface
- Servlets have GUI interface
- Applets are client side components
You Can inherit multiple interfaces.
- True
- False
Whats the implicit name of the parameter that gets passed into the class set method?
- Parameter
- Value
- Index
- Object
You can declare the override method static while the original method is non-static.
- True
- False
C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
- One
- Two
- Nill
- None
You can override private virtual methods?
- True
- False
Vector.size() refers to the space alloted to the vector
- True
- False
StringTokenizer st= new StringTokenizer(String s). The output string is tokenized based on
- comma
- space
- single quote
- double quote
Try catch block should be used whenever
- I/O operation
- Database operation
- Networking
- All of the above
- None of the above
Output Stream corresponding to the Sequence Input Stream
- Sequence Output Stream
- Print Stream
- None of the above
- 1 and 2
The below statement returns ?executeUpdate(String sql)...
- Resultset
- Prepared Statement
- Statement
- Number of rows retrieved