Which of the following syntax used to attach an input stream to console?

Similar documents
Virtualians.ning.pk. 2 - Java program code is compiled into form called 1. Machine code 2. native Code 3. Byte Code (From Lectuer # 2) 4.

Come & Join Us at VUSTUDENTS.net

ddfffddd CS506 FINAL TERMS SOLVED BY MCQS GHAZAL FROM IEMS CAMPUS SMD CS506 Mcqs file solved by ghazal

The AWT Event Model 9

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1

Event Driven Programming

I/O Framework and Case Study. CS151 Chris Pollett Nov. 2, 2005.

PESIT Bangalore South Campus

(Objective-CS506 Web Design and Development)

Packages: Putting Classes Together

CONTENTS. Chapter 1 Getting Started with Java SE 6 1. Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13

SD Module-1 Advanced JAVA

SD Module-1 Advanced JAVA. Assignment No. 4

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

G51PRG: Introduction to Programming Second semester Applets and graphics

Method Of Key Event Key Listener must implement three methods, keypressed(), keyreleased() & keytyped(). 1) keypressed() : will run whenever a key is

Data Source Name (Page 150) Ref: - After creating database, you have to setup a system Data Source Name (DSN).

UNIT-3 : MULTI THREADED PROGRAMMING, EVENT HANDLING. A Multithreaded program contains two or more parts that can run concurrently.

(listener)... MouseListener, ActionLister. (adapter)... MouseAdapter, ActionAdapter. java.awt AWT Abstract Window Toolkit GUI

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

GUI Event Handlers (Part I)

Programmierpraktikum

Core JAVA Training Syllabus FEE: RS. 8000/-

Java Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

GUI Event Handling 11. GUI Event Handling. Objectives. What is an Event? Hierarchical Model (JDK1.0) Delegation Model (JDK1.1)

Applet. 1. init (): called once by the applet containers when an applet is loaded for execution.

Inheritance. One class inherits from another if it describes a specialized subset of objects Terminology:

GUI Program Organization. Sequential vs. Event-driven Programming. Sequential Programming. Outline

Table of Contents. Chapter 1 Getting Started with Java SE 7 1. Chapter 2 Exploring Class Members in Java 15. iii. Introduction of Java SE 7...

Object Oriented Programming with Java. Unit-1

Java - Applications. The following code sets up an application with a drop down menu, as yet the menu does not do anything.

Unit 7: Event driven programming

Java & Graphical User Interface II. Wang Yang wyang AT njnet.edu.cn

Dr. Hikmat A. M. AbdelJaber

Example Programs. COSC 3461 User Interfaces. GUI Program Organization. Outline. DemoHelloWorld.java DemoHelloWorld2.java DemoSwing.

Introduction to the JAVA UI classes Advanced HCI IAT351

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM)

Advanced Java Programming (17625) Event Handling. 20 Marks

Lecture 19 GUI Events

GUI in Java TalentHome Solutions

Chapter 11 Handling Exceptions and Events. Chapter Objectives

Java Programming. Price $ (inc GST)

CSE 331 Software Design & Implementation

Programming graphics

JAVA. Duration: 2 Months

CS11 Java. Fall Lecture 3

OOP Assignment V. For example, the scrolling text (moving banner) problem without a thread looks like:

CS 201 Advanced Object-Oriented Programming Lab 10 - Recursion Due: April 21/22, 11:30 PM

Contents Chapter 1 Introduction to Programming and the Java Language

11/7/12. Discussion of Roulette Assignment. Objectives. Compiler s Names of Classes. GUI Review. Window Events

Welcome to CIS 068! 1. GUIs: JAVA Swing 2. (Streams and Files we ll not cover this in this semester, just a review) CIS 068

Java Input/Output. 11 April 2013 OSU CSE 1

Assignment No 2. Year: Dept.: ComputerTech. Sanjivani Rural Education Society s Sanjivani KBP Polytechnic, Kopargaon

2. (True/False) All methods in an interface must be declared public.

Complete Java Contents

CS506 Web Design & Development Final Term Solved MCQs with Reference

Interacción con GUIs

Control Flow: Overview CSE3461. An Example of Sequential Control. Control Flow: Revisited. Control Flow Paradigms: Reacting to the User

Introduction This assignment will ask that you write a simple graphical user interface (GUI).

COMPSCI 230. Software Design and Construction. Swing

OBJECT ORIENTED PROGRAMMING. Course 8 Loredana STANCIU Room B613

CSE 331 Software Design and Implementation. Lecture 19 GUI Events

Overloading Example. Overloading. When to Overload. Overloading Example (cont'd) (class Point continued.)

Lecture 5: Java Graphics

Handling Mouse and Keyboard Events

public void mouseexited (MouseEvent e) setminute(getminute()+increment); 11.2 public void mouseclicked (MouseEvent e) int x = e.getx(), y = e.gety();

"Charting the Course... Java Programming Language. Course Summary

BASICS OF GRAPHICAL APPS

Graphical User Interfaces 2

BM214E Object Oriented Programming Lecture 13

Java: Graphical User Interfaces (GUI)

Java 1.8 Programming

Java SE 8 Programmer I and II Syballus( Paper codes : 1z0-808 & 1z0-809)

CSIS 10A Assignment 14 SOLUTIONS

H212 Introduction to Software Systems Honors

GUI Programming: Swing and Event Handling

Advanced Java Unit 6: Review of Graphics and Events

SAMPLE EXAM Exam 2 Computer Programming 230 Dr. St. John Lehman College City University of New York Thursday, 5 November 2009

1Z Java SE 7 Programmer II Exam Summary Syllabus Questions

Lecture 3: Java Graphics & Events

Graphical User Interfaces 2

Applet which displays a simulated trackball in the upper half of its window.

GUI DYNAMICS Lecture July 26 CS2110 Summer 2011

Java Training JAVA. Introduction of Java

An applet is a program written in the Java programming language that can be included in an HTML page, much in the same way an image is included in a

Chapter 14: Applets and More

8/23/2014. Chapter Topics. Introduction to Applets. Introduction to Applets. Introduction to Applets. Applet Limitations. Chapter 14: Applets and More

Marcin Luckner Warsaw University of Technology Faculty of Mathematics and Information Science

Chapter 14: Applets and More

AP Computer Science Unit 13. Still More Graphics and Animation.

Part 3: Graphical User Interface (GUI) & Java Applets

E Oracle 10g Java Bootcamp I v1

CSE 143. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

Events. Dispatch, event-to-code binding. Review: Events Defined 1/17/2014. occurrence.

Oracle 10g: Java Programming

Java for Interfaces and Networks (DT3010, HT10)

Contents. 18 Algorithms Case study: network search The search algorithm Case study: automatic language recognition 57

SNS COLLEGE OF ENGINEERING, Coimbatore

GUI Basics. Object Orientated Programming in Java. Benjamin Kenwright

Transcription:

Which of the following syntax used to attach an input stream to console? FileReader fr = new FileReader( input.txt ); FileReader fr = new FileReader(FileDescriptor.in); FileReader fr = new FileReader(FileDescriptor); FileReader fr = new FileReader(console); Which one of the following is always executes irrespective of exception occurrence? Try block Catch block Throws block Finally block Which of the following statement is true regarding paintcomponent() method? It tells any components contained by this component to paint themselves. It tells the component to paint its border.

It first paints the background and then performs custom painting. It first performs custom painting and then paints the background. Which of the given statement objects are used to execute using same query multiple times by only changing parameters? Statement CallableStatement PreparedStatement Both PreparedStatement and CallableStatement AWT is also called. Heavy weight components Light weight components Both Light weight and heavy weight components Neither Light weight nor heavy weight Which of the following function will be used to register event handler with events generator, where event generator is button? addaction() addactionlistener()

addlistener() registerlistener() Based on functionality, the streams can be categorized as Byte oriented stream and Node stream Filter stream and Character oriented stream Node stream and Filter stream Byte oriented stream and Character oriented stream Which of the following stream is a Node stream? PrintWriter FileWriter BufferedReader All of given option What will happen if static modifier is removed from the signature of main method? The program does not compile The program compiles and runs successfully

The program compiles but does not run Which of the following command is used to invoke an Applet from command line interpreter? applet htmlfile appletviewer htmlfile appletviewer javafile viewer htmlfile Which of the following function is declared in MouseMotionListener interface? public void mousepressed (MouseEvent me); public void mousedragged (MouseEvent me); public void mouseclicked (MouseEvent me); public void mouseentered (MouseEvent me); is required in order to get an object from collection. Up-casting Down casting

Implicit casting Adapter classes have been defined for listener interfaces except interface. MouseListener KeyListener WindowListener ActionListener Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements? executequery(sql); ExecuteQuery(sql); executeupdate(sql); ExecuteUpdate(sql); Which of the given Listener interface(s) have adopter class(s)? ActionListener MouseMotionListener

AdjustmentListener ItemListener Which of the following is true about abstract class? An abstract class must have all methods declared as abstract methods. A class must have at least one abstract method to be an abstract class. A class without any abstract method can be declared as abstract class. An instance of abstract class can be created. Exceptions must be handled while handling files otherwise it may lead to Logical error Syntax error Run-time error No error One Event handling is a step process. Two

Three Four If a class needs to handle events generated by button then which of the following interface a class needs to implement? ComponentListener KeyListener MouseListener ActionListener JPanel Which of the following is a top level container? ToolBar ScrollPane Dialog start() Which of the following method of an Applet is called every time when page is minimized? init()

stop() destroy() Which of the following stream is a filter stream? FileWriter FileReader BufferedReader All of given options Six There are steps in order to communicate successfully with database. Seven Eight Nine If a class needs to handle events generated by button then which of the following interface a class needs to implement? ComponentListener KeyListener

MouseListener ActionListener Which of the following package needs to be import while handling files? java.util java.io java.awt javax.swing run() Which of the following method takes the place of constructor in an Applet? main() init() start() Which of the following statement regarding Java is false? Java is a programming language A Java program compiles into machine language

Java is case sensitive language Java uses an interpreter Which of the following function is declared in MouseMotionListener interface? public void mousepressed (MouseEvent me); public void mousedragged (MouseEvent me); public void mouseclicked (MouseEvent me); public void mouseentered (MouseEvent me); Which of the following syntax is used to get ResultSetMetaData object? ResultSetMetaData md = con.getmetadata(); // where con is Connection object ResultSetMetaData md = rs.getmetadata(); // where rs is ResultSet object ResultSetMetaData md = st.getmetadata(); // where st is Statement object ResultSet md = rs.getmetadata(); // where rs is ResultSetMetaDta object