CORE JAVA Slips

Core Java Practical Slips Solutions

2019 Pattern
CORE JAVA  Slips Solution
SLIP 1

SLIP 2
SLIP 3

SLIP 4

SLIP 5

SLIP 6

SLIP 7

SLIP 8

SLIP 9

SLIP 10

SLIP 11

SLIP 12

SLIP 13

SLIP 14

SLIP 15

SLIP 16

SLIP 17

SLIP 18

SLIP 19

SLIP 20

SLIP 21
A) Write a java program to display each word from a file in reverse order
B) Create a hashtable containing city name & STD code. Display the details of the hashtable. Also search for a specific city and display STD code of that city. 

SLIP 22
A) Write a Java program to calculate factorial of a number using recursion.
B) Write a java program for the following:
            1. To create a file. 
            2. To rename a file. 
            3. To delete a file. 
            4. To display path of a file.

SLIP 23
A) Write a java program to check whether given file is hidden or not. If not then display its path, otherwise display appropriate message.
B) Write a java program to design following Frame using Swing. 

SLIP 24
A) Write a java program to count number of digits, spaces and characters from a file
B) Create a package TYBBACA with two classes as class Student (Rno, SName, Per) with a method disp() to display details of N Students and class Teacher (TID, TName, Subject) with a method disp() to display the details of teacher who is teaching Java subject. (Make use of finalize() method and array of Object)

SLIP 25
A) Write a java program to check whether given string is palindrome or not.
B) Create a package named Series having three different classes to print series: 
            i. Fibonacci series 
            ii. Cube of numbers 
            iii. Square of numbers 
Write a java program to generate ‘n’ terms of the above series

SLIP 26
A) Write a java program to display ASCII values of the characters from a file
B) Write a java program using applet to draw Temple.

SLIP 27
A) Write a java program to accept a number from user, If it is greater than 1000 then throw user defined exception “Number is out of Range” otherwise display the factors of that number. (Use static keyword)
B) Write a java program to accept directory name in TextField and display list of files and subdirectories in List Control from that directory by clicking on Button. 

SLIP 28
A) Write a java program to count the number of integers from a given list. (Use Command line arguments).
B) Write a java Program to accept the details of 5 employees (Eno, Ename, Salary) and display it onto the JTable. 

SLIP 29
A) Write a java program to check whether given candidate is eligible for voting or not. Handle user defined as well as system defined Exception.
B) Write a java program using Applet for bouncing ball. Ball should change its color for each bounce. 

SLIP 30
A) Write a java program to accept a number from a user, if it is zero then throw userdefined Exception “Number is Zero”. If it is non-numeric then generate an error“Number is Invalid” otherwise check whether it is palindrome or not.
B) Write a java program to design a following GUI (Use Swing)

No comments:

Post a Comment