The document lists questions about Java programming concepts including built-in packages, operators, data types, features, access control, type casting, variable scope, control flow statements like for loops and switch statements, mathematical functions, operators, and more.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
14 views1 page
JAVA Chapter 1
The document lists questions about Java programming concepts including built-in packages, operators, data types, features, access control, type casting, variable scope, control flow statements like for loops and switch statements, mathematical functions, operators, and more.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
1 List any four built-in packages from Java API along with their use.
se. OR Enlist any four built in
packages in java API with atleast two class name from each package. OR State any four system packages along with their use. 2 Explain shift right and shift left operators. OR Explain any two bit-wise operators with example. 3 List the standard default values of each data type. 4 Explain features: (i) Platform Independence (ii) Robust (iii) Dynamic (iv) Object oriented (ii) Compiled and interpreted OR Explain any four features of java programming. OR Explain inheritance and polymorphism features of Java. OR How java is different than other programming language ? 5 Write a java program to implement visibility controls such as public, private, protected access modes. Assume suitable data, if any. OR Describe access control specifiers with example. OR Write the effect of access specifiers public, private and protected in package. 6 What is type casting ? Explain its types with proper syntax and example. OR What do mean by typecasting ? When it is needed ? 7 State & explain scope of variable with an example. OR What is scope of variable ? Give example of class variable, instance variable and local variable. OR What are the access control parameters ? Explain the concept with suitable example. 8 Write a java program to display all the odd numbers between 1 to 30 using for loop & if statement. 9 Illustrate with example the use of switch case statement. 10 In what ways does a switch statement differ from an if statements ? 11 Write a program to find the no. of and sum of all integers greater than 100 and less than 200 that are divisible by 7. 12 Describe?, : (Ternary operator) in Java with suitable example. OR ‘?:’ what this operator is called ? Explain with suitable example. 13 What is byte code ? Explain any two tools available in JDK. 14 What is JVM ? What is byte code ? 15 Define JDK. List the tools available in JDK explain any one in detail. 16 Write any four mathematical functions used in Java. 17 Describe any two relational and any two logical operators in Java with simple example. 18 Write general syntax of any two decision making statements and also give its examples. 19 Explain break and continue statements with example. 20 State syntax and describe working of ‘for each’ version of for loop with one example. 21 Write a program to print the following output : 11111 2222 333 44 5
Remember, you're сooler than you think ;) Welcome to pattern from @mira - loves - dolls!!! Here comes the day when the curtain falls, and I will reveal all the secrets !