XII Informatics Practices 2013 important questions with solution

Size: px
Start display at page:

Download "XII Informatics Practices 2013 important questions with solution"

Transcription

1 XII Informatics Practices 2013 important questions with solution 1. Why do you use import statement in java programming? Explain with example. Ans. The import statement in Java allows programmers to refer to classes which are declared in other packages to be accessed without referring to the full package name. Import statement must be the first line of the program. Import statement have 2 option for importing the classes from packages a. single class from package by mentioning the class name specifically. Eg. import javax.swing.joptionpane; b. entire class by using * (asterisk) symbol in place of class name. Eg. import javax.swing.*; Classes from the java.lang package are automatically imported, so it is not require to explicitly importing. 2. What will be the initial value of an object reference which is defined as an instance variable? Ans. Each instance variable is initialized with a default value when it is created: Type Initial / Default value Type Initial / Default value byte 0(Zero of byte type) double 0.0D short 0(Zero of byte type) char null character i.e., \u000 int 0 boolean false long 0L All reference types null float 0.0F 3. What is the purpose of if statement? Describe the different forms of if statements with example. Ans. An if-statement tests a particular condition; if the condition evaluates to true, a statement or set of statements is executed otherwise the statement or set of statements is not executed. There are four different forms of if statements which are as following: 1. Simple if statement: Example: if(ch== ) label1.settext( It is space character ); 2. If-else statement: Example: if(num>0) label1.settext( number is positive ); else label1.settext( number is negative or zero ); 3. Nested if statement: if(num>0) if(num<100) label1.settext( number is between 0 to 100 ); else label1.settext( number is not between 0 to 100 ); 4. How can you describe the life of a variable in an application? Ans. We can describe the life of a variable in an application by following two different ways: 1. Local variable: The variable which is declared inside a method and is only accessible inside that CBSE CS N IP Page 1 of 12

2 method is called a local variable. 2. Global variable: If a variable is declare outside all methods, then its scope includes all the methods and it is said to be a global variable. 5. What do you understand about inheritance? Write the advantage of inheritance. Ans. Inheritance is a form of software reusability in which new classes are created from existing classes by absorbing their attributes and behaviors. Advantages: Inheritance is capable of expressing the inheritance relationship of real world models. Men inherit from person ; woman inherits from person etc. Inheritance facilitates the code reusability. Additional features can be added to a class by deriving a class from it and then by adding new features to it. Class once written and tested need not be re-written or re-defined. Inheritance is capable of simulating the transitive nature of real worlds inheritance, which in turn saves on modification time and efforts, if required. 6. Difference between if-else and switch-case. Ans. if-else switch-case If can evaluate a relational or logical expression Switch can only test for equality. i.e., multiple conditions. The if-else constructions lets you use a series of expressions that may involve unrelated variables and complex expression. The if-else statement can handle floating point test also a part from handling integer and character tests. The switch statement selects its branches by testing the value of same variable. A switch cannot handle floating point tests. The case labels of switch must be an integer byte, short, int or a char. 7. Difference between while and do-while. Ans. while do-while While is an entry-controlled loop. do-while is a exit-controlled loop. In while loop the test expression is evaluated at the end of the loop i.e., after executing the loop body. the loop body. Syntax: while(test-expression) // statement In do-while loop the test expression is evaluated at the beginning of the loop i.e., before executing Syntax: do // statement while(test-expression); 8. What are the steps required to execute a query in JBDC? Ans. 1. Import the packages required for database programming. 2. Register the JDBC Driver. 3. Open a connection. 4. Execute a query. 5. Extract data from result set. 6. Clean up the environment. 9. List the Advantages of JDBC. Ans. Provide Existing Enterprise Data CBSE CS N IP Page 2 of 12

3 Simplified Enterprise Development Zero Configuration for Network Computers Full Access to Metadata No Installation Database Connection Identified by URL 10. Difference between JTextField and j PasswordField. Ans. When we type text into a JTextField control, it shows the characters in the control, but in JPasswordField control the typed characters are shown as astriks for security. 11. Differentiate between Java and NetBeans. What is IDE? Ans. Java is both a programming language and a platform whereas NetBeans is a free, open source, cross-paltform IDE with built in support for java programming language. IDE: Integrated Devlopment Envirnment(IDE), it s a software tool to help programmer to edit source code, compile, interpreate and debug. 12. What is ByteCode. Explain JVM. Ans. ByteCode: A bytecode is a byte-long instruction that the Java compiler generates and the Java interpreater executes. JVM: JVM(Java Virtual Machine) is a program which behaves as interpreter and translate bytecode into machine languages as they go- called just-in-time compilation(jit). 13. Differentiate between ODBC and JDBC driver. Ans. ODBC JDBC odbc is open database connectivity. jdbc is java database connectivity. OBDC is for Microsoft. ODBC mixes simple and advanced features together and has complex options for simple queries. ODBC requires manual installation of the ODBC driver manager and driver on all client machines. JDBC is for Java applications. JDBC is designed to keep things simple while allowing advanced capabilities when required. JDBC drivers are written in Java and JDBC code is automatically installable, secure, and portable on all platforms. 14. Differentiate between Call by Value and Call by Reference. Ans. Call By Value Call by reference Call by value is used to create a temporary copy of the data which is transferred from the actual parameter in the final parameter. parameters The changes done in the function in formal parameter are not reflected back in the calling environment. It does not use & sign Call by reference is used to share the same memory location for actual and formal The changes done in the function are reflected back in the calling environment. It makes the use of the & sign as the reference operator. 15. What are containers or container controls? Ans. A containers are a controls that can hold other controls within it e.g., a Frame(there can be multiple controls inside a frame) or a label(it can hold an image and/or text) or simply window (we can put so many controls on it). Controls inside a container are known as child controls. The child controls can exist completely inside their containers. That means we can s move them outside their container. CBSE CS N IP Page 3 of 12

4 When we delete a container control, all its child controls automatically get deleted. 16. What is a list? How is it different from combo box? Ans. A List is a graphical control that displays a list of items in a box wherefrom the user can make selections Difference between List and ComboBox List ComboBox A list doesn t have a text field the user can used to edit the selected item. A combobox is a cross between a text field and a list. In a list, the user must select items directly from the list. In a combobox user can edit it if he/she whishes. The list doesn t drop down. A combobox takes less space initially but drops down when user clicks on its arrow. Lists allow us to select more than one item. Combobox allows only single item selection. 17. What do you mean by life time of variable? How is a local variable different from other variable? Ans. The lifetime of variable is the period during which it can be accessed. A local variable is declared inside a method and is accessible only inside that method. In this way local variable is different from other variable. 18. What is the purpose of default clause in a switch statement? Ans. Default is used for the else situation. The default statement gets executed when no match is found. 19. While working in NetBeans, Raj included a Listbox in the form. Now she wants the list of her friend's names to be displayed in it. Which property of Listbox control should she use to do this? Ans. Modal property 20. What is constructor? How can you call access super class constructor from sub class. Ans. Constructor: A member method with the same name as its class is called constructor and it is used to initialize the objects of that class type with a legal initial value. By using super keyword we can call access super class constructor from sub class. 21. Ms. Samhita has developed a Java application through which the students of her school can view their marks by entering their admission number. The marks are displayed in various text fields. What should she do so that the students are able to view but not change their marks in text fields? Ans. By uncheck editable property of JTextField. 22. What is the purpose of break statement in a loop? Ans. The break statement is used to break from an enclosing do, while, for, or switch statement. Break breaks the loop without executing the rest of the statements in the block. 23. What is the use of super keyword? Ans. The first use of keyword super is to access the hidden data variables of the super class hidden by the subclass. The second use of the keyword super in java is to call super class constructor in the subclass. 24. What are the 3 types of error found in program? Explain them briefly. Ans. 1. Compile-Time Errors Compile-time errors (syntax errors and semantics errors) refer to the errors that violate the grammatical rules and regulations of a programming language. 2. Run-Time Errors Run-time errors occur during the execution of a program. CBSE CS N IP Page 4 of 12

5 3. Logical Errors Logical errors occur due to mistaken analysis of the problem. 25. What should be done so that only one of the radio buttons (Male and Female) can be selected at a time? Ans. We should use ButtonGroup component so that only one of the radio buttons (Male and Female) can be selected at a time. 26. A phone number, consisting of 10 digits, is stored in a string variable strphone. Now it is required to store this phone number in a Long type variable lngphone. Write a Java statement to do this. Ans. String strphone = " "; long lngphone = Long.parseLong(strPhone); System.out.println(lngPhone); 27. Write a java method to fetch the data from the employee table and display it in jtable the method already having Connection class object name con, Statement class Object name smt and ResultSet class object rs with the following query SELECT EMPNO, ENAME, JOB, SAL FROM EMP. Ans. import java.sql.*; import javax.swing.table.*; import javax.swing.joptionpane.*; // button private void jbutton1actionperformed(java.awt.event.actionevent evt) // TODO add your handling code here: DefaultTableModel model=(defaulttablemodel)jtable1.getmodel(); int rows=model.getrowcount(); if(rows>0) for(int i=0;i<rows;i++) model.removerow(0); String query="select * from emp"; try Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection con=(connection)drivermanager.getconnection("jdbc:mysql://localhost:3306/employee","root",""); Statement smt=con.createstatement(); ResultSet rs=smt.executequery(query); while(rs.next()) String no=rs.getstring("empno"); String name=rs.getstring("ename"); String job1=rs.getstring("job"); String salary=rs.getstring("sal"); CBSE CS N IP Page 5 of 12

6 System.out.println(no+" "+name+" "+job1+" "+salary); model.addrow(new Object[]no,name,job1,salary); catch(exception e) 28. What is abstract method? Write a Java code to demonstrate abstract method. Ans. An abstract method is a method that is declared without an implementation (without braces, and followed by a semicolon). If a class includes abstract methods, the class itself must be declared abstract Example: Public abstract class Shape String name; double area; public abstract void display(); Class Circle extend shape double radius; double calcarea() return * radius * radius; public void display() System.out.println( radius= + radius); System.out.println( area= + calcarea()); 29. What is Package? Explain various built-in packages of Java. Ans. Package: A package is a Java language element used to group related classes under a common name. java.lang: Provides classes that are fundamental to the design of the Java programming language. The most important classes are Object, which is the root of the class hierarchy, and Class, instances of which represent classes at run time. java.util: Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 30. What is Interface? Write syntax of Interface and implementation of Interface. Ans. Interface: Interface is similar to a class which may contain methods signature only but not bodies and it is a formal set of method and constant declarations that must be defined by the class that implements it. Syntax of Interface: interface interface_name Interface_body CBSE CS N IP Page 6 of 12

7 Syntax of implementation of Interface: class class_name implements interface_1, interface_2,. Interface_body 31. Which method converts a string to an integer? Ans. parseint()method converts a string to an integer. 32. Write a method in Java that takes two integer arguments and returns power of it. Suppose x and y passing as an argument then it returns x to power y after calculation. Ans. int cal_power(int x, int y) int x=math.pow(x,y); return(x); 33. Write a Method in Java to take a number as argument and print the product of its digit, as if a number entered is 234 then the program gives o/p as 24. Ans. import java.io.*; public class JavaApplication6 public static void main(string[] args) int n, r = 0; int a=1; try BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the number"); n=integer.parseint(br.readline()); while( n!= 0 ) r=n%10; a=a*(r); n=n/10; System.out.println(" No is=\n "+a); catch(exception e) 34. Write the Java Code for Finding Prime No. Ans. class prime public static void main(string p[]) CBSE CS N IP Page 7 of 12

8 int i,j,s=0,d=0; for(i=1;i<100;i++) s=0; for(j=1;j<=i;j++) if(i%j==0) s=s+1; if(s==2) System.out.println(i); d=d+1; System.out.println("the no. of prime no. are = "+d); 35. Write the Java Code for Finding Palindrome Word. import java.io.*; class PaliString public static void main(string[] args) try BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the string"); String s=br.readline(); int i; int n=s.length(); String str=""; for(i=n-1;i>=0;i--) str=str+s.charat(i); if(str.equals(s)) System.out.println(s+ "is palindrome"); else System.out.println(s+ "is not a palindrome"); catch(exception e) 36. Write the Java Code for reverse a given digit. Ans. import java.io.*; CBSE CS N IP Page 8 of 12

9 public class JavaApplication14 public static void main(string[] args) int n, reverse = 0; try BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the number"); n=integer.parseint(br.readline()); while( n!= 0 ) reverse = reverse * 10; reverse = reverse + n%10; n = n/10; System.out.println("Reverce No is=\n "+reverse); catch(exception e) 37. Write the Java Code for Fibonacci Series. Ans. import java.io.*; class Fibonacci public static void main(string args[]) int n=10,first=0,second=1,next,c; try BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the number of terms "); n=integer.parseint(br.readline()); System.out.println("First terms of fibonacci series are :-\n"+n); for(c=0;c<n;c++) if (c<=1) next = c; else next = first + second; first = second; second = next; System.out.println("\n"+next); catch(exception e) CBSE CS N IP Page 9 of 12

10 38. Write Factorial () function and pass an integer number as a argument and return a factorial of passed number by using recursion method. Ans. import java.io.*; class Factorial long fact(long a) if(a <= 1) return 1; else a= a*fact(a-1); return a; public static void main (String arr[]) try System.out.println("Enter a number to find factorial"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt( br.readline()); Factorial f = new Factorial(); System.out.println(f.fact(num)); catch(exception e) 39. Expand the following terms- JDBC, API, GUI, JRE, JDK, JVM, IDE Ans. JDBC: Java DataBase Connectivity API: Application Programming Interface GUI: Graphical User Interface JRE: Java Runtime Environment JDK: Java Development Kit JVM: Java Virtual Machine IDE: integrated development environment 40. Write the purpose of following method with proper example a. getstring() b. substring() c. length() d. capacity() e. round() f. isselected() CBSE CS N IP Page 10 of 12

11 g. getinstance() h. setsize() i. getselectedvalue() j. executeupdate() k. getpassword() l. getselecteditem() m. additem() n. append() o. setvisible() p. createstatement() q. setenabled() r. seteitable() Ans. a. getstring() : getstring() method is provided by ResultSet object and used for obtaining column data for a row. Example: String st=rs.getstring( ABC ); b. substring(): this method is used to return a part or substring of the String used to invoke the method. The first argument represents the starting location of the substring. Example: String s= abcdefghi ; System.out.println(s.substring(5)); System.out.println(s.substring(5,8)); c. length(): This method count and return the number of characters contained in the string object. Example: String str= Informatics Practices ; System.out.println(str.length()); d. capacity(): Returns the current capacity. The capacity is the amount of storage available for newly inserted characters, beyond which an allocation will occur. Example: String str= Informatics Practices ; System.out.println(str. capacity()); e. round() : Rounds to the nearest integer. So, if the value is more than half way towards the higher integer, the value is rounded up to the next integer. Example: Math.round(1.01); f. isselected(): This is a JCheckBox and JRadioButton method which return the state of the button. True if the toggle button is selected, false if it s not. Example: if(jradiobutton1.isselected()==true) JLable1.setText( selected ); else JLable1.setText( not selected ); g. getinstance(): This method is used to get the instance of a object. Example: class abc abc ab; ab.getinstance(); CBSE CS N IP Page 11 of 12

12 h. setsize(): setsize() is used for setting a size for JFrame. Example: Jframe1.setSize(100,100); i. getselectedvalue(): Returns the selected value when only a single item is selected in the list. When multiple items are selected, it returns the first selected value. Returns null if there is no selection. Example: String dur=(string)jlist1.getselectedvalue(); jlabel1.settext(dur); j. executeupdate(): Execute the given SQL statement, which may be an INSERT, UPDATE or DELETE statement or SQL statement that returns nothing, such as SQL DDL statement. Example: String sql= DELETE FROM Employees ; ResultSet rs=stmt. executeupdate(sql); k. getpassword():getpassword()method is used to obtain password from a password field. Example: String ped=new String(pwdfld.getPassword()); l. getselecteditem(): Returns the selected item. Example: String dur=(string)jcombobox1.getselecteditem(); jlabel1.settext(dur); m. additem(): Adds an item to the item list, in the end, of the combo box. Example: citycb.additem( ABC ); n. append(): Adds the specified text to the end of the text area. Example: jtextarea1.append("abc"); o. setvisible(): Makes the check box visible if true is passed otherwise hides the check box. Example: jchackbox1.setvisible(true); p. createstatement(): Creates a SQL statement object for building and submitting an SQL statement to the database. Example: Statement stmt = con.createstatement( ); q. setenabled(): Enables the check box if true is passed otherwise disable the check box. Example: jchackbox1.setenabled(true); r. seteditable(): Sets whether the user can edit the text in the Text Field. Default is true. Example: NameTF.setEditable(True); CBSE CS N IP Page 12 of 12

Sri Vidya College of Engineering & Technology

Sri Vidya College of Engineering & Technology UNIT I INTRODUCTION TO OOP AND FUNDAMENTALS OF JAVA 1. Define OOP. Part A Object-Oriented Programming (OOP) is a methodology or paradigm to design a program using classes and objects. It simplifies the

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

Chapter 6 Introduction to Defining Classes

Chapter 6 Introduction to Defining Classes Introduction to Defining Classes Fundamentals of Java: AP Computer Science Essentials, 4th Edition 1 Objectives Design and implement a simple class from user requirements. Organize a program in terms of

More information

Sample Paper 2011 Class XII Subject Informatics Practices Time 03 hrs Max Marks 70 General Instructions:- 1. All questions are compulsory. 2. Question paper carries A, B & C Three parts. 3. Section A is

More information

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

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 P a g e 1 CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1 Q1 Describe some Characteristics/Advantages of Java Language? (P#12, 13, 14) 1. Java

More information

Visit for more.

Visit  for more. Chapter 6: Database Connectivity Informatics Practices Class XII (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra, PGT (Comp.Sc.)

More information

F I N A L E X A M I N A T I O N

F I N A L E X A M I N A T I O N Faculty Of Computer Studies M257 Putting Java to Work F I N A L E X A M I N A T I O N Number of Exam Pages: (including this cover sheet( Spring 2011 April 4, 2011 ( 5 ) Time Allowed: ( 1.5 ) Hours Student

More information

PROGRAMMING FUNDAMENTALS

PROGRAMMING FUNDAMENTALS PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Course Outline. Introduction to java

Course Outline. Introduction to java Course Outline 1. Introduction to OO programming 2. Language Basics Syntax and Semantics 3. Algorithms, stepwise refinements. 4. Quiz/Assignment ( 5. Repetitions (for loops) 6. Writing simple classes 7.

More information

Classes Basic Overview

Classes Basic Overview Final Review!!! Classes and Objects Program Statements (Arithmetic Operations) Program Flow String In-depth java.io (Input/Output) java.util (Utilities) Exceptions Classes Basic Overview A class is a container

More information

Basics of Object Oriented Programming. Visit for more.

Basics of Object Oriented Programming. Visit   for more. Chapter 4: Basics of Object Oriented Programming Informatics Practices Class XII (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra,

More information

STRUCTURING OF PROGRAM

STRUCTURING OF PROGRAM Unit III MULTIPLE CHOICE QUESTIONS 1. Which of the following is the functionality of Data Abstraction? (a) Reduce Complexity (c) Parallelism Unit III 3.1 (b) Binds together code and data (d) None of the

More information

Java Bytecode (binary file)

Java Bytecode (binary file) Java is Compiled Unlike Python, which is an interpreted langauge, Java code is compiled. In Java, a compiler reads in a Java source file (the code that we write), and it translates that code into bytecode.

More information

CS 231 Data Structures and Algorithms, Fall 2016

CS 231 Data Structures and Algorithms, Fall 2016 CS 231 Data Structures and Algorithms, Fall 2016 Dr. Bruce A. Maxwell Department of Computer Science Colby College Course Description Focuses on the common structures used to store data and the standard

More information

JRadioButton account_type_radio_button2 = new JRadioButton("Current"); ButtonGroup account_type_button_group = new ButtonGroup();

JRadioButton account_type_radio_button2 = new JRadioButton(Current); ButtonGroup account_type_button_group = new ButtonGroup(); Q)Write a program to design an interface containing fields User ID, Password and Account type, and buttons login, cancel, edit by mixing border layout and flow layout. Add events handling to the button

More information

e) Implicit and Explicit Type Conversion Pg 328 j) Types of errors Pg 371

e) Implicit and Explicit Type Conversion Pg 328 j) Types of errors Pg 371 Class IX HY 2013 Revision Guidelines Page 1 Section A (Power Point) Q1.What is PowerPoint? How are PowerPoint files named? Q2. Describe the 4 different ways of creating a presentation? (2 lines each) Q3.

More information

9 Working with the Java Class Library

9 Working with the Java Class Library 9 Working with the Java Class Library 1 Objectives At the end of the lesson, the student should be able to: Explain object-oriented programming and some of its concepts Differentiate between classes and

More information

Computer Programming, I. Laboratory Manual. Final Exam Solution

Computer Programming, I. Laboratory Manual. Final Exam Solution Think Twice Code Once The Islamic University of Gaza Engineering Faculty Department of Computer Engineering Fall 2017 ECOM 2005 Khaleel I. Shaheen Computer Programming, I Laboratory Manual Final Exam Solution

More information

1 Shyam sir JAVA Notes

1 Shyam sir JAVA Notes 1 Shyam sir JAVA Notes 1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write

More information

In order to use functions/methods of math library, you need to invoke function using math keywords before the function. e.g. x=math.abs(-7.5); 1. pow(num1,num2) - It computes num1 num2, where num1 and

More information

1. Java is a... language. A. moderate typed B. strogly typed C. weakly typed D. none of these. Answer: B

1. Java is a... language. A. moderate typed B. strogly typed C. weakly typed D. none of these. Answer: B 1. Java is a... language. A. moderate typed B. strogly typed C. weakly typed D. none of these 2. How many primitive data types are there in Java? A. 5 B. 6 C. 7 D. 8 3. In Java byte, short, int and long

More information

INTRODUCTION TO JDBC - Revised Spring

INTRODUCTION TO JDBC - Revised Spring INTRODUCTION TO JDBC - Revised Spring 2006 - 1 What is JDBC? Java Database Connectivity (JDBC) is an Application Programmers Interface (API) that defines how a Java program can connect and exchange data

More information

K E Y I CYCLIC, EXAMINATION SECTION A

K E Y I CYCLIC, EXAMINATION SECTION A Question 1: (a) 0 to 65,535 SECTION A (b) Precision (i) float 6 digits (ii) double 15 digits (c) Attributes to declare a class Data members and Member functions (d) The two types of Java programs are 1.

More information

Object Oriented Programming is a programming method that combines: Advantage of Object Oriented Programming

Object Oriented Programming is a programming method that combines: Advantage of Object Oriented Programming Overview of OOP Object Oriented Programming is a programming method that combines: a) Data b) Instructions for processing that data into a self-sufficient object that can be used within a program or in

More information

INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES

INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES Answer Key-Class XI INFO 017-18(Final) Roll Number Code Number 065/ INDIAN SCHOOL MUSCAT FINAL TERM EXAMINATION INFORMATICS PRACTICES CLASS: XII Sub. Code: 065 TimeAllotted:3 Hrs 18.0.018 Max. Marks: 70

More information

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Weiss Chapter 1 terminology (parenthesized numbers are page numbers) Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement

More information

Language Features. 1. The primitive types int, double, and boolean are part of the AP

Language Features. 1. The primitive types int, double, and boolean are part of the AP Language Features 1. The primitive types int, double, and boolean are part of the AP short, long, byte, char, and float are not in the subset. In particular, students need not be aware that strings are

More information

( &% class MyClass { }

( &% class MyClass { } Recall! $! "" # ' ' )' %&! ( &% class MyClass { $ Individual things that differentiate one object from another Determine the appearance, state or qualities of objects Represents any variables needed for

More information

Index COPYRIGHTED MATERIAL

Index COPYRIGHTED MATERIAL Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes

More information

Array. Prepared By - Rifat Shahriyar

Array. Prepared By - Rifat Shahriyar Java More Details Array 2 Arrays A group of variables containing values that all have the same type Arrays are fixed length entities In Java, arrays are objects, so they are considered reference types

More information

Class, Variable, Constructor, Object, Method Questions

Class, Variable, Constructor, Object, Method Questions Class, Variable, Constructor, Object, Method Questions http://www.wideskills.com/java-interview-questions/java-classes-andobjects-interview-questions https://www.careerride.com/java-objects-classes-methods.aspx

More information

Prasanth Kumar K(Head-Dept of Computers)

Prasanth Kumar K(Head-Dept of Computers) B.Sc (Computer Science) Object Oriented Programming with Java and Data Structures Unit-II 1 1. Define operator. Explain the various operators in Java. (Mar 2010) (Oct 2011) Java supports a rich set of

More information

13 th Windsor Regional Secondary School Computer Programming Competition

13 th Windsor Regional Secondary School Computer Programming Competition SCHOOL OF COMPUTER SCIENCE 13 th Windsor Regional Secondary School Computer Programming Competition Hosted by The School of Computer Science, University of Windsor WORKSHOP I [ Overview of the Java/Eclipse

More information

Downloaded from

Downloaded from FIRST TERMINAL EXAMINATION, INFORMATICS PRACTICES Time : 3 hrs. Class - XI M.M. : 70 Instructions: This question paper contains seven questions. All the questions are compulsory. Answer the questions carefully.

More information

CS260 Intro to Java & Android 03.Java Language Basics

CS260 Intro to Java & Android 03.Java Language Basics 03.Java Language Basics http://www.tutorialspoint.com/java/index.htm CS260 - Intro to Java & Android 1 What is the distinction between fields and variables? Java has the following kinds of variables: Instance

More information

Programming overview

Programming overview Programming overview Basic Java A Java program consists of: One or more classes A class contains one or more methods A method contains program statements Each class in a separate file MyClass defined in

More information

Brief Summary of the Chapter: CHAPTER-6 MORE ABOUT CLASSES AND LIBRARIES In this chapter the way access of members of a class i.e. about access specifier will be discuss. Java include predefined classes

More information

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class.

I pledge by honor that I will not discuss this exam with anyone until my instructor reviews the exam in the class. Name: Covers Chapters 1-3 50 mins CSCI 1301 Introduction to Programming Armstrong Atlantic State University Instructor: Dr. Y. Daniel Liang I pledge by honor that I will not discuss this exam with anyone

More information

Java Basic Programming Constructs

Java Basic Programming Constructs Java Basic Programming Constructs /* * This is your first java program. */ class HelloWorld{ public static void main(string[] args){ System.out.println( Hello World! ); A Closer Look at HelloWorld 2 This

More information

Introduction to Java

Introduction to Java Introduction to Java Module 1: Getting started, Java Basics 22/01/2010 Prepared by Chris Panayiotou for EPL 233 1 Lab Objectives o Objective: Learn how to write, compile and execute HelloWorld.java Learn

More information

JAVA GUI PROGRAMMING REVISION TOUR III

JAVA GUI PROGRAMMING REVISION TOUR III 1. In java, methods reside in. (a) Function (b) Library (c) Classes (d) Object JAVA GUI PROGRAMMING REVISION TOUR III 2. The number and type of arguments of a method are known as. (a) Parameter list (b)

More information

Outline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors

Outline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors Outline Overview history and advantage how to: program, compile and execute 8 data types 3 types of errors Control statements Selection and repetition statements Classes and methods methods... 2 Oak A

More information

S.E. Sem. III [CMPN] Object Oriented Programming Methodology

S.E. Sem. III [CMPN] Object Oriented Programming Methodology S.E. Sem. III [CMPN] Object Oriented Programming Methodology Time : 3 Hrs.] Prelim Question Paper Solution [Marks : 80 Q.1(a) Write a program to calculate GCD of two numbers in java. [5] (A) import java.util.*;

More information

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate

More information

Get Unique study materials from

Get Unique study materials from Downloaded from www.rejinpaul.com VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING Year & Semester : IV Section : EEE - 1 & 2 Subject Code

More information

Computer Applications Answer Key Class IX December 2017

Computer Applications Answer Key Class IX December 2017 Computer Applications Answer Key Class IX December 2017 Question 1. a) What are the default values of the primitive data type int and float? Ans : int = 0 and float 0.0f; b) Name any two OOP s principle.

More information

Accessing databases in Java using JDBC

Accessing databases in Java using JDBC Accessing databases in Java using JDBC Introduction JDBC is an API for Java that allows working with relational databases. JDBC offers the possibility to use SQL statements for DDL and DML statements.

More information

Wipro Technical Interview Questions

Wipro Technical Interview Questions Wipro Technical Interview Questions Memory management in C The C programming language manages memory statically, automatically, or dynamically. Static-duration variables are allocated in main memory, usually

More information

What are the characteristics of Object Oriented programming language?

What are the characteristics of Object Oriented programming language? What are the various elements of OOP? Following are the various elements of OOP:- Class:- A class is a collection of data and the various operations that can be performed on that data. Object- This is

More information

BASICS OF OBJECT ORIENTED PROGRAMMING

BASICS OF OBJECT ORIENTED PROGRAMMING 4 CHAPTER Learning Objectives BASICS OF OBJECT ORIENTED PROGRAMMING After studying this lesson the students will be able to: Understand the need of object oriented programming Define the various terms

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE

More information

B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA

B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE

More information

6.Introducing Classes 9. Exceptions

6.Introducing Classes 9. Exceptions 6.Introducing Classes 9. Exceptions Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in Phone: +91-9999-283-283 Learning

More information

Programming Language Concepts: Lecture 2

Programming Language Concepts: Lecture 2 Programming Language Concepts: Lecture 2 Madhavan Mukund Chennai Mathematical Institute madhavan@cmi.ac.in http://www.cmi.ac.in/~madhavan/courses/pl2009 PLC 2009, Lecture 2, 19 January 2009 Classes and

More information

1 Lexical Considerations

1 Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Spring 2013 Handout Decaf Language Thursday, Feb 7 The project for the course is to write a compiler

More information

INTRODUCTION TO JDBC - Revised spring

INTRODUCTION TO JDBC - Revised spring INTRODUCTION TO JDBC - Revised spring 2004 - 1 What is JDBC? Java Database Connectivity (JDBC) is a package in the Java programming language and consists of several Java classes that deal with database

More information

Byte and Character Streams. Reading and Writing Console input and output

Byte and Character Streams. Reading and Writing Console input and output Byte and Character Streams Reading and Writing Console input and output 1 I/O basics The io package supports Java s basic I/O (input/output) Java does provide strong, flexible support for I/O as it relates

More information

Full file at

Full file at Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class

More information

Object Oriented Pragramming (22316)

Object Oriented Pragramming (22316) Chapter 1 Principles of Object Oriented Programming (14 Marks) Q1. Give Characteristics of object oriented programming? Or Give features of object oriented programming? Ans: 1. Emphasis (focus) is on data

More information

Lexical Considerations

Lexical Considerations Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.035, Fall 2005 Handout 6 Decaf Language Wednesday, September 7 The project for the course is to write a

More information

Padasalai.Net s Model Question Paper

Padasalai.Net s Model Question Paper Padasalai.Net s Model Question Paper STD: XII VOLUME - 2 MARKS: 150 SUB: COMPUTER SCIENCE TIME: 3 HRS PART I Choose the correct answer: 75 X 1 = 75 1. Which of the following is an object oriented programming

More information

Contents Chapter 1 Introduction to Programming and the Java Language

Contents Chapter 1 Introduction to Programming and the Java Language Chapter 1 Introduction to Programming and the Java Language 1.1 Basic Computer Concepts 5 1.1.1 Hardware 5 1.1.2 Operating Systems 8 1.1.3 Application Software 9 1.1.4 Computer Networks and the Internet

More information

Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub

Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub Lebanese University Faculty of Science Computer Science BS Degree Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub 2 Crash Course in JAVA Classes A Java

More information

CORE JAVA TRAINING COURSE CONTENT

CORE JAVA TRAINING COURSE CONTENT CORE JAVA TRAINING COURSE CONTENT SECTION 1 : INTRODUCTION Introduction about Programming Language Paradigms Why Java? Flavors of Java. Java Designing Goal. Role of Java Programmer in Industry Features

More information

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question) CS/B.TECH/CSE(New)/SEM-5/CS-504D/2013-14 2013 OBJECT ORIENTED PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

Chapter 2: Basic Elements of Java

Chapter 2: Basic Elements of Java Chapter 2: Basic Elements of Java TRUE/FALSE 1. The pair of characters // is used for single line comments. ANS: T PTS: 1 REF: 29 2. The == characters are a special symbol in Java. ANS: T PTS: 1 REF: 30

More information

Sample Paper for class XII IP with Answers Prepared by Successbook Group Sub: - Informatics Practices Total Marks :70 Time:3hr

Sample Paper for class XII IP with Answers Prepared by Successbook Group Sub: - Informatics Practices Total Marks :70 Time:3hr Sample Paper for class XII IP with Answers Prepared by Successbook Group Sub: - Informatics Practices Total Marks :70 Time:3hr 1. (a.) Why do we use repeater? A repeater is used to regenerate data and

More information

Methods (Deitel chapter 6)

Methods (Deitel chapter 6) Methods (Deitel chapter 6) 1 Plan 2 Introduction Program Modules in Java Math-Class Methods Method Declarations Argument Promotion Java API Packages Random-Number Generation Scope of Declarations Methods

More information

Methods (Deitel chapter 6)

Methods (Deitel chapter 6) 1 Plan 2 Methods (Deitel chapter ) Introduction Program Modules in Java Math-Class Methods Method Declarations Argument Promotion Java API Packages Random-Number Generation Scope of Declarations Methods

More information

Simple Java Reference

Simple Java Reference Simple Java Reference This document provides a reference to all the Java syntax used in the Computational Methods course. 1 Compiling and running... 2 2 The main() method... 3 3 Primitive variable types...

More information

Java Primer 1: Types, Classes and Operators

Java Primer 1: Types, Classes and Operators Java Primer 1 3/18/14 Presentation for use with the textbook Data Structures and Algorithms in Java, 6th edition, by M. T. Goodrich, R. Tamassia, and M. H. Goldwasser, Wiley, 2014 Java Primer 1: Types,

More information

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix PGJC4_JSE8_OCA.book Page ix Monday, June 20, 2016 2:31 PM Contents Figures Tables Examples Foreword Preface xix xxi xxiii xxvii xxix 1 Basics of Java Programming 1 1.1 Introduction 2 1.2 Classes 2 Declaring

More information

Objects and Classes. 1 Creating Classes and Objects. CSCI-UA 101 Objects and Classes

Objects and Classes. 1 Creating Classes and Objects. CSCI-UA 101 Objects and Classes Based on Introduction to Java Programming, Y. Daniel Liang, Brief Version, 10/E 1 Creating Classes and Objects Classes give us a way of defining custom data types and associating data with operations on

More information

CS 152: Data Structures with Java Hello World with the IntelliJ IDE

CS 152: Data Structures with Java Hello World with the IntelliJ IDE CS 152: Data Structures with Java Hello World with the IntelliJ IDE Instructor: Joel Castellanos e-mail: joel.unm.edu Web: http://cs.unm.edu/~joel/ Office: Electrical and Computer Engineering building

More information

Selected Questions from by Nageshwara Rao

Selected Questions from  by Nageshwara Rao Selected Questions from http://way2java.com by Nageshwara Rao Swaminathan J Amrita University swaminathanj@am.amrita.edu November 24, 2016 Swaminathan J (Amrita University) way2java.com (Nageshwara Rao)

More information

Java Identifiers, Data Types & Variables

Java Identifiers, Data Types & Variables Java Identifiers, Data Types & Variables 1. Java Identifiers: Identifiers are name given to a class, variable or a method. public class TestingShastra { //TestingShastra is an identifier for class char

More information

COMP 250 Winter 2011 Reading: Java background January 5, 2011

COMP 250 Winter 2011 Reading: Java background January 5, 2011 Almost all of you have taken COMP 202 or equivalent, so I am assuming that you are familiar with the basic techniques and definitions of Java covered in that course. Those of you who have not taken a COMP

More information

CompSci 125 Lecture 02

CompSci 125 Lecture 02 Assignments CompSci 125 Lecture 02 Java and Java Programming with Eclipse! Homework:! http://coen.boisestate.edu/jconrad/compsci-125-homework! hw1 due Jan 28 (MW), 29 (TuTh)! Programming:! http://coen.boisestate.edu/jconrad/cs125-programming-assignments!

More information

WOSO Source Code (Java)

WOSO Source Code (Java) WOSO 2017 - Source Code (Java) Q 1 - Which of the following is false about String? A. String is immutable. B. String can be created using new operator. C. String is a primary data type. D. None of the

More information

Java Professional Certificate Day 1- Bridge Session

Java Professional Certificate Day 1- Bridge Session Java Professional Certificate Day 1- Bridge Session 1 Java - An Introduction Basic Features and Concepts Java - The new programming language from Sun Microsystems Java -Allows anyone to publish a web page

More information

MYcsvtu Notes. Java Programming Lab Manual

MYcsvtu Notes. Java Programming Lab Manual Java Programming Lab Manual LIST OF EXPERIMENTS 1. Write a Program to add two numbers using Command Line Arguments. 2. Write a Program to find the factorial of a given number using while statement. 3.

More information

CMSC 331 Second Midterm Exam

CMSC 331 Second Midterm Exam 1 20/ 2 80/ 331 First Midterm Exam 11 November 2003 3 20/ 4 40/ 5 10/ CMSC 331 Second Midterm Exam 6 15/ 7 15/ Name: Student ID#: 200/ You will have seventy-five (75) minutes to complete this closed book

More information

Kendriya Vidyalaya Sangathan (Chandigarh Region) Blue Print of Question Paper Class: XI Subject: Informatics Practices Session

Kendriya Vidyalaya Sangathan (Chandigarh Region) Blue Print of Question Paper Class: XI Subject: Informatics Practices Session Kendriya Vidyalaya Sangathan (Chandigarh Region) Blue Print of Question Paper Class: XI Subject: Informatics Practices Session 2017-18 S.No. Unit Very Short Answer Short Answer-I Short Answer-II Long Answer

More information

OOPs Concepts. 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8.

OOPs Concepts. 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8. OOPs Concepts 1. Data Hiding 2. Encapsulation 3. Abstraction 4. Is-A Relationship 5. Method Signature 6. Polymorphism 7. Constructors 8. Type Casting Let us discuss them in detail: 1. Data Hiding: Every

More information

SAMPLE PAPER CLASS XII SUBJECT Informatics Practices

SAMPLE PAPER CLASS XII SUBJECT Informatics Practices http:/// Time : 3 hrs. SAMPLE PAPER CLASS XII SUBJECT Informatics Practices MM:70 A. Answer the following questions. A.1 Expand the following terms: FLOSS and ODF (1) A.2 Sun Beam Connectivity Association

More information

Unit 3 - Java Data Base Connectivity

Unit 3 - Java Data Base Connectivity Two-Tier Database Design The two-tier is based on Client-Server architecture. The direct communication takes place between client and server. There is no mediator between client and server. Because of

More information

Crash Course Review Only. Please use online Jasmit Singh 2

Crash Course Review Only. Please use online Jasmit Singh 2 @ Jasmit Singh 1 Crash Course Review Only Please use online resources @ Jasmit Singh 2 Java is an object- oriented language Structured around objects and methods A method is an action or something you

More information

Programming II (CS300)

Programming II (CS300) 1 Programming II (CS300) Chapter 04: Exception Handling MOUNA KACEM mouna@cs.wisc.edu Spring 2018 Creating Classes 2 Introduction Exception Handling Common Exceptions Exceptions with Methods Assertions

More information

Java Primer. CITS2200 Data Structures and Algorithms. Topic 2

Java Primer. CITS2200 Data Structures and Algorithms. Topic 2 CITS2200 Data Structures and Algorithms Topic 2 Java Primer Review of Java basics Primitive vs Reference Types Classes and Objects Class Hierarchies Interfaces Exceptions Reading: Lambert and Osborne,

More information

Lecture 5: Methods CS2301

Lecture 5: Methods CS2301 Lecture 5: Methods NADA ALZAHRANI CS2301 1 Opening Problem Find the sum of integers from 1 to 10, from 20 to 30, and from 35 to 45, respectively. 2 Solution public static int sum(int i1, int i2) { int

More information

Operators and Expressions

Operators and Expressions Operators and Expressions Conversions. Widening and Narrowing Primitive Conversions Widening and Narrowing Reference Conversions Conversions up the type hierarchy are called widening reference conversions

More information

Chapter 4 Defining Classes I

Chapter 4 Defining Classes I Chapter 4 Defining Classes I This chapter introduces the idea that students can create their own classes and therefore their own objects. Introduced is the idea of methods and instance variables as the

More information

McGill University School of Computer Science COMP-202A Introduction to Computing 1

McGill University School of Computer Science COMP-202A Introduction to Computing 1 McGill University School of Computer Science COMP-202A Introduction to Computing 1 Midterm Exam Thursday, October 26, 2006, 18:00-20:00 (6:00 8:00 PM) Instructors: Mathieu Petitpas, Shah Asaduzzaman, Sherif

More information

Tools : The Java Compiler. The Java Interpreter. The Java Debugger

Tools : The Java Compiler. The Java Interpreter. The Java Debugger Tools : The Java Compiler javac [ options ] filename.java... -depend: Causes recompilation of class files on which the source files given as command line arguments recursively depend. -O: Optimizes code,

More information

5/23/2015. Core Java Syllabus. VikRam ShaRma

5/23/2015. Core Java Syllabus. VikRam ShaRma 5/23/2015 Core Java Syllabus VikRam ShaRma Basic Concepts of Core Java 1 Introduction to Java 1.1 Need of java i.e. History 1.2 What is java? 1.3 Java Buzzwords 1.4 JDK JRE JVM JIT - Java Compiler 1.5

More information

Unit 1 Lesson 4. Introduction to Control Statements

Unit 1 Lesson 4. Introduction to Control Statements Unit 1 Lesson 4 Introduction to Control Statements Essential Question: How are control loops used to alter the execution flow of a program? Lesson 4: Introduction to Control Statements Objectives: Use

More information

Roll Number. Common to II Year B.E.CSE & EIE INTERNAL ASSESSMENT TEST - I. Credit 3 R-2017

Roll Number. Common to II Year B.E.CSE & EIE INTERNAL ASSESSMENT TEST - I. Credit 3 R-2017 Roll Number ERODE SENGTHAR ENGINEERING COLLEGE PERDURI, ERODE 638 057 (Accredited by NBA, Accredited by NAAC with A grade, Accredited by IE (I), Kolkotta, Permanently affiliated to Anna University, Chennai

More information

Full file at Chapter 2 - Inheritance and Exception Handling

Full file at   Chapter 2 - Inheritance and Exception Handling Chapter 2 - Inheritance and Exception Handling TRUE/FALSE 1. The superclass inherits all its properties from the subclass. ANS: F PTS: 1 REF: 76 2. Private members of a superclass can be accessed by a

More information