CORE JAVA

 

TYBCA SLIP CORE JAVA



SLIP 1




SLIP 2



SLIP 3




SLIP 4



B) Write a java program using Applet to implement a simple arithmetic calculator.


SLIP 5


            5
            4 5 
            3 4 5 
            2 3 4 5 
            1 2 3 4 5

B) Write a java program to accept list of file names through command line. Delete the files having extension .txt. Display name, location and size of remaining files.


SLIP 6


A) Write a java program to accept a number from user, if it zero then throw user defined Exception “Number Is Zero”, otherwise calculate the sum of first and last digit of that number. (Use static keyword).


SLIP 7


A) Write a java program to display Label with text “Dr. D Y Patil College”, background color Red and font size 20 on the frame.

B) Write a java program to accept details of ‘n’ cricket player (pid, pname, totalRuns, InningsPlayed, NotOuttimes). Calculate the average of all the players. Display the details of player having maximum average. (Use Array of Object)


SLIP 8



B) Write a java program to display the files having extension .txt from a given directory.


SLIP 9


            
            0 1 
            0 1 0 
            1 0 1 0

B) Write a java program to validate PAN number and Mobile Number. If it is invalid then throw user defined Exception “Invalid Data”, otherwise display it. 


SLIP 10



B) Write a java program for the following:


SLIP 11


            1. Addition 
            2. Subtraction 
            3. Multiplication
            4. Division. 

B) Write an applet application to display Table lamp. The color of lamp should get change randomly. 


SLIP 12


A) Write a java program to display each String in reverse order from a String array

B) Write a java program to display multiplication table of a given number into the List box by clicking on button


SLIP 13



B) Write a java program that asks the user name, and then greets the user by name. Before outputting the user's name, convert it to upper case letters. For example, if the user's name is Raj, then the program should respond "Hello, RAJ, nice to meet you!".


SLIP 14


A) Write a Java program to calculate power of a number using recursion.

B) Write a java program to accept the details of employee (Eno, EName, Sal) and display it on next frame using appropriate event .


SLIP 15


A) Write a java program to search given name into the array, if it is found then display its index otherwise display appropriate message.

B) Write an applet application to display smiley face.


SLIP 16


A) Write a java program to calculate sum of digits of a given number using recursion.

B) Write a java program to accept n employee names from user. Sort them in ascending order and Display them.(Use array of object and Static keyword)


SLIP 17


A) Write a java Program to accept ‘n’ no’s through command line and store only armstrong no’s into the array and display that array.

B) Define a class Product (pid, pname, price, qty). Write a function to accept the product details, display it and calculate total amount. (use array of Objects)


SLIP 18


A) Write a Java program to calculate area of Circle, Triangle & Rectangle.(Use Method Overloading)

B) Write a java program to copy the data from one file into another file, while copying change the case of characters in target file and replaces all digits by ‘*’ symbol.


SLIP 19


A) Write a Java program to display Fibonacci series using function.

B) Create an Applet that displays the x and y position of the cursor movement using Mouse and Keyboard. (Use appropriate listener)


SLIP 20


A) Write a java program using AWT to create a Frame with title “TYBBACA”, background color RED. If user clicks on close button then frame should close.

B) Construct a Linked List containing name: CPP, Java, Python and PHP. Then extend your java program to do the following: 
        i. Display the contents of the List using an Iterator 
        ii. Display the contents of the List in reverse order using a ListIterator


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



B) Write a java program to design a following GUI (Use Swing)













No comments:

Post a Comment

Write a Java program to display given extension files from a specific directory on server machine.

 DOWNLOAD     SLIP14Q2 /** * STEPS TO RUN CODE * Step 01 compile the code * Step 02 run the code * Step 03 give a file directory locatio...